Function at 0x4a0e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ba61f
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
movzx eax, word [ebp]
cmp eax, 0x20
je 0x4a0e7f
cmp eax, 9
jne 0x4a0e84
add ebp, 2
jmp 0x4a0e71
mov edi, dword [sym.imp.MSVCR100.dll_wcschr]
push 0x2c
push ecx
call edi
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
je 0x4a178b
cmp word [esi], bx
je 0x4a178b
push 0x2c
push ebp
add esi, 2
call edi
add esp, 8
test eax, eax
je 0x4a0ec3
push 0x2c
push ebp
call edi
add esp, 8
xor ecx, ecx
mov word [eax], cx
or eax, 0xffffffff
mov edi, esi
call fcn.00426820
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a0ed2
sub eax, edx
lea edx, [esp + 0x2c]
push edx
sar eax, 1
push eax
push ebp
mov ecx, 0x4ea1d0
call fcn.0043b2c0
test eax, eax
je 0x4a0f01
push ebp
push str.Duplicate_function_definition.
jmp 0x4a1798
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a0f06
sub eax, edx
sar eax, 1
mov edi, eax
jne 0x4a0f31
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a0f20
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0xfd
jbe 0x4a0f50
push ebp
push str.Function_name_too_long.
mov ecx, 0x4ea1d0
call fcn.00449df0
xor eax, eax
jmp 0x4a17a2
push edi
lea eax, [esp + 0x258]
push ebp
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
lea edx, [esp + 0x254]
xor ecx, ecx
push 2
push edx
mov word [esp + edi*2 + 0x25c], cx
call fcn.004a3350
add esp, 8
test eax, eax
je 0x4a0f49
lea eax, [esp + 0x254]
push eax
mov ecx, edi
call fcn.0049b510
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4a0f49
cmp dword [0x4e982c], ebx
jne 0x4a0fb1
call fcn.0049b650
mov dword [0x4e982c], eax
cmp eax, ebx
je 0x4a0ff8
mov ecx, dword [0x4e9830]
cmp dword [ecx + 8], 0x54
jae 0x4a0fcf
call fcn.0049b650
mov ecx, dword [0x4e9830]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x4a0ff8
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffac
lea edx, [eax + 0x54]
mov dword [0x4e9834], eax
mov dword [ecx + 4], edx
cmp eax, ebx
je 0x4a0ff8
xor dl, dl
mov ecx, edi
call fcn.00429870
mov edi, eax
mov dword [esp + 0x40], edi
cmp edi, ebx
jne 0x4a1013
push 0x4bd2c4
push 0x4bd2fc
mov ecx, 0x4ea1d0
call fcn.00449df0
xor eax, eax
jmp 0x4a17a2
mov eax, dword [0x4ea7f8]
mov ecx, dword [0x4ea7fc]
cmp eax, ecx
jne 0x4a105a
lea ebp, [ecx + ecx]
cmp ecx, ebx
jne 0x4a102e
mov ebp, 0x64
mov ecx, dword [0x4ea7f4]
lea eax, [ebp*4]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
cmp eax, ebx
je 0x4a0ff8
mov dword [0x4ea7f4], eax
mov eax, dword [0x4ea7f8]
mov dword [0x4ea7fc], ebp
mov ebp, dword [esp + 0x2c]
cmp ebp, eax
je 0x4a1080
mov edx, dword [0x4ea7f4]
sub eax, ebp
add eax, eax
add eax, eax
lea ecx, [edx + ebp*4]
push eax
push ecx
add ecx, 4
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov eax, dword [0x4ea7f4]
mov dword [eax + ebp*4], edi
inc dword [0x4ea7f8]
mov ecx, esi
sub ecx, dword [esp + 0x46c]
mov dword [edi + 8], 0x462900
mov byte [edi + 0x51], 1
mov dword [edi + 0x14], ebx
sar ecx, 1
mov edi, 0x4001
sub edi, ecx
mov eax, str._A_ScriptDir_
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x4a10e8
lea edx, [esp + 0x4c]
push str.A_ScriptDir
push edx
call fcn.0045f830
push ebx
push 1
push ebx
lea eax, [esp + 0x60]
push eax
push str._A_ScriptDir_
push esi
xor eax, eax
mov ecx, edi
call fcn.0049ede0
add esp, 0x20
mov eax, str._A_AppData_
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x4a1122
lea ecx, [esp + 0x4c]
push str.A_AppData
push ecx
call fcn.0045f160
push ebx
push 1
push ebx
lea edx, [esp + 0x60]
push edx
push str._A_AppData_
push esi
xor eax, eax
mov ecx, edi
call fcn.0049ede0
add esp, 0x20
mov eax, str._A_AppDataCommon_
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x4a115c
lea eax, [esp + 0x4c]
push str.A_AppDataCommon
push eax
call fcn.0045f160
push ebx
push 1
push ebx
lea ecx, [esp + 0x60]
push ecx
push str._A_AppDataCommon_
push esi
xor eax, eax
mov ecx, edi
call fcn.0049ede0
add esp, 0x20
mov eax, str._A_AhkPath_
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x4a1196
lea edx, [esp + 0x4c]
push str.A_AhkPath
push edx
call fcn.0045ebc0
push ebx
push 1
push ebx
lea eax, [esp + 0x60]
push eax
push str._A_AhkPath_
push esi
xor eax, eax
mov ecx, edi
call fcn.0049ede0
add esp, 0x20
mov eax, str._A_AhkDir_
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x4a11d0
lea ecx, [esp + 0x4c]
push str.A_AhkDir
push ecx
call fcn.0045ec10
push ebx
push 1
push ebx
lea edx, [esp + 0x60]
push edx
push str._A_AhkDir_
push esi
xor eax, eax
mov ecx, edi
call fcn.0049ede0
add esp, 0x20
mov eax, str._A_DllDir_
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x4a120a
lea eax, [esp + 0x4c]
push str.A_DllDir
push eax
call fcn.0045ece0
push ebx
push 1
push ebx
lea ecx, [esp + 0x60]
push ecx
push str._A_DllDir_
push esi
xor eax, eax
mov ecx, edi
call fcn.0049ede0
add esp, 0x20
mov eax, str._A_DllPath_
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x4a1244
lea edx, [esp + 0x4c]
push str.A_DllPath
push edx
call fcn.0045ec70
push ebx
push 1
push ebx
lea eax, [esp + 0x60]
push eax
push str._A_DllPath_
push esi
xor eax, eax
mov ecx, edi
call fcn.0049ede0
add esp, 0x20
mov edi, dword [sym.imp.MSVCR100.dll_wcschr]
push 0x25
push esi
call edi
add esp, 8
test eax, eax
je 0x4a1261
push esi
push str.Reference_not_allowed_here__use__where_possible._Only__A_AhkPath___A_AhkDir___A_DllPath___A_DllDir___A_ScriptDir___A_AppData_Common___can_be_used_here.
jmp 0x4a1798
push 0x2c
push esi
call edi
add esp, 8
test eax, eax
je 0x4a127a
push 0x2c
push esi
call edi
add esp, 8
xor ecx, ecx
mov word [eax], cx
mov edx, str._s_A_Fa_f0_9__:_A_Fa_f0_9____s_
call fcn.00465640
test eax, eax
je 0x4a135a
push 0x3a
push esi
mov dword [esp + 0x2c], 0x780030
mov dword [esp + 0x30], ebx
call edi
add esp, 8
test eax, eax
je 0x4a12b6
push 0x3a
push esi
call dword [sym.imp.MSVCR100.dll_wcschr]
mov ebp, eax
add esp, 8
sub ebp, esi
jmp 0x4a12ce
mov ebp, esi
lea ecx, [ebp + 2]
jmp 0x4a12c0
mov ax, word [ebp]
add ebp, 2
cmp ax, bx
jne 0x4a12c0
sub ebp, ecx
sar ebp, 1
mov eax, ebp
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov eax, edi
call fcn.0049b590
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x4a12f3
push esi
push 0x4bd2fc
jmp 0x4a1798
push 0x40
push 0x1000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4a1311
push esi
push str.Could_not_commit_memory_for_DllImport.
jmp 0x4a1798
xor edi, edi
cmp ebp, ebx
jle 0x4a1363
mov ebx, esi
lea esp, [esp]
push 2
lea ecx, [esp + 0x2c]
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
push 0x10
lea edx, [esp + 0x28]
push 0
push edx
call dword [sym.imp.MSVCR100.dll_wcstol]
mov edx, dword [esp + 0x2c]
mov ecx, edi
shr ecx, 1
add edi, 2
add esp, 0xc
add ebx, 4
mov byte [ecx + edx], al
cmp edi, ebp
jl 0x4a1320
jmp 0x4a1363
call fcn.00403dd0
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x4a13b9
push 0x5c
push esi
call dword [sym.imp.MSVCR100.dll_wcsrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x4a139b
xor eax, eax
push esi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4a1393
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, 0x5c
mov word [edi], cx
push 0
push esi
call fcn.00461420
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4a13b9
push esi
push str.Call_to_nonexistent_function.
jmp 0x4a1798
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a13c0
sub eax, edx
sar eax, 1
lea edi, [esi + eax*2 + 2]
push edi
or ecx, 0xffffffff
call fcn.0049b510
mov ebp, eax
add esp, 4
cmp word [ebp], 0
mov byte [esp + 0x17], 0
je 0x4a13fd
mov esi, ebp
call fcn.00417490
test eax, eax
jne 0x4a13fd
lea ebx, [eax + 1]
jmp 0x4a13ff
xor ebx, ebx
cmp word [ebp], 0
mov dword [esp + 0x18], ebx
je 0x4a1460
mov esi, dword [sym.imp.MSVCR100.dll_wcschr]
push 0x2c
push edi
call esi
add esp, 8
test eax, eax
je 0x4a1442
lea esp, [esp]
push 0x2c
push edi
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x4a1431
add edi, 2
push 0x2c
push edi
inc ebx
call esi
add esp, 8
test eax, eax
jne 0x4a1420
mov dword [esp + 0x18], ebx
cmp word [ebp], 0
je 0x4a1460
cmp ebx, 1
jge 0x4a1460
mov edx, dword [esp + 0x46c]
push edx
push str.Parameter_3_required
jmp 0x4a1798
mov eax, 0x10
call fcn.0049b590
mov ebx, eax
mov dword [esp + 0x3c], ebx
test ebx, ebx
jne 0x4a1483
push 0x4bd2c4
push 0x4bd2fc
jmp 0x4a1798
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x18]
and eax, 0x80000001
mov dword [esp + 0x1c], 0x20
jns 0x4a14a8
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4a14b6
mov dword [ebx + 8], 2
jmp 0x4a154f
mov eax, edi
call fcn.00413050
push 5
mov esi, eax
push str.CDecl
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4a1503
lea eax, [esi + 0xa]
mov dword [esp + 0x1c], 0x10
call fcn.00413050
cmp word [eax], 0
mov dword [esp + 0x24], eax
jne 0x4a1503
mov dword [ebx + 8], 2
jmp 0x4a1526
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.00460e10
add esp, 8
cmp dword [ebx + 8], 0
jne 0x4a1521
mov eax, 4
jmp 0x4a17a2
mov byte [esp + 0x17], 1
dec dword [esp + 0x18]
cmp byte [ebx + 0xc], 0
jne 0x4a154f
mov eax, dword [ebx + 8]
cmp eax, 7
jne 0x4a1542
or dword [esp + 0x1c], 0x200
jmp 0x4a154f
cmp eax, 6
jne 0x4a154f
or dword [esp + 0x1c], 0x100
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
je 0x4a1618
mov esi, edi
shl esi, 4
mov eax, esi
call fcn.0049b590
mov ebx, eax
mov eax, esi
mov dword [esp + 0x30], ebx
call fcn.0049b590
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x4a1474
test eax, eax
je 0x4a1474
lea esi, [edi*4]
mov eax, esi
call fcn.0049b590
mov dword [esp + 0x34], eax
test esi, esi
je 0x4a15bb
test eax, eax
je 0x4a1474
test esi, esi
je 0x4a15bb
push esi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, 1
xor ebx, ebx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x18], eax
jle 0x4a173c
mov edi, dword [esp + 0x30]
mov dword [esp + 0x48], ebx
jmp 0x4a15e0
push 0x2c
push ebp
call dword [sym.imp.MSVCR100.dll_wcschr]
mov esi, eax
xor edx, edx
lea eax, [esp + 0x4c]
push edi
mov word [esi], dx
push eax
add esi, 2
mov dword [esp + 0x54], ebp
call fcn.00460e10
mov eax, dword [edi + 8]
add esp, 0x10
cmp eax, 8
ja case.0x4a1611.2
jmp dword [eax*4 + 0x4a17bc]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
jmp 0x4a158d
call fcn.00403dd0
or eax, edx
jne case.0x4a1611.0
mov dword [edi], esi
jmp 0x4a1706
call fcn.00403dd0
or eax, edx
jne case.0x4a1611.0
push 0x2c
push esi
call dword [sym.imp.MSVCR100.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4a1660
xor ecx, ecx
mov word [ebp], cx
push 0xc
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x464], 0
test eax, eax
je 0x4a1687
push esi
push eax
call fcn.0046fe40
jmp 0x4a1689
xor eax, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x464], 0xffffffff
mov dword [edx + ebx*4], eax
test ebp, ebp
je 0x4a16a8
mov eax, 0x2c
mov word [ebp], ax
mov ecx, dword [esp + 0x34]
mov ebp, dword [ecx + ebx*4]
push ebp
call fcn.0040c1c0
mov edx, dword [ebp + 4]
mov byte [ebp + 8], 1
mov eax, dword [edx]
mov dword [edi], eax
jmp 0x4a1706
call fcn.00426960
fst qword [edi]
cmp dword [edi + 8], 6
jne 0x4a1704
fstp dword [edi]
jmp 0x4a1706
cmp byte [edi + 0xd], 0
je 0x4a16ee
cmp eax, 5
jne 0x4a16ee
call fcn.00403dd0
or eax, edx
jne 0x4a16ee
call fcn.0044b520
jmp 0x4a16f3
call fcn.00403dd0
cmp dword [edi + 8], 5
mov dword [edi + 4], edx
mov dword [edi], eax
je 0x4a1706
mov ecx, eax
mov dword [edi], ecx
jmp 0x4a1706
fstp st(0)
push 0x2c
push esi
call dword [sym.imp.MSVCR100.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4a1721
xor edx, edx
mov word [ebp], dx
add ebp, 2
mov eax, dword [esp + 0x38]
add eax, 2
inc ebx
add edi, 0x10
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x18]
jl 0x4a15e0
jmp 0x4a1740
mov esi, dword [esp + 0x24]
cmp byte [esp + 0x17], 0
je 0x4a1753
cmp dword [esp + 0x18], 0
je 0x4a1753
xor eax, eax
mov word [esi], ax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x20], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x34], edx
mov eax, 3
jmp 0x4a17a2
mov eax, dword [esp + 0x46c]
push eax
push str.Parameter_2_required
mov ecx, 0x4ea1d0
call fcn.00449df0
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x458
ret