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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c945f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x250
push esi
push edi
mov dword [ebp - 0x24], edx
mov esi, ecx
nop dword [eax]
mov al, byte [esi]
cmp al, 0x20
je 0x49cd3a
cmp al, 9
jne 0x49cd3d
inc esi
jmp 0x49cd30
push 0x2c
push ecx
call fcn.004b7be9
mov edi, eax
add esp, 8
test edi, edi
je 0x49d5b1
cmp byte [edi], 0
je 0x49d5b1
push 0x2c
push esi
inc edi
call fcn.004b7be9
add esp, 8
test eax, eax
je 0x49cd79
push 0x2c
push esi
call fcn.004b7be9
add esp, 8
mov byte [eax], 0
or edx, 0xffffffff
mov ecx, edi
call fcn.00427370
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49cd88
lea eax, [ebp - 0x34]
sub ecx, edx
push eax
push ecx
push esi
mov ecx, 0x4e9a70
call fcn.004385f0
test eax, eax
je 0x49cdb0
push esi
push str.Duplicate_function_definition.
jmp 0x49d5b9
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49cdb5
push 0
push dword [ebp - 0x34]
sub ecx, edx
push 0
push ecx
push esi
mov ecx, 0x4e9a70
call fcn.00439d70
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x49cdeb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 0x24]
mov edx, str._A_ScriptDir_
sub esi, edi
mov dword [eax + 8], 0x45ed00
add esi, 0x4001
mov byte [eax + 0x51], 1
mov ecx, edi
mov dword [eax + 0x14], 0
mov dword [ebp - 0x30], esi
call fcn.0049a8f0
test eax, eax
je 0x49ce5c
mov edx, dword [0x4ea08c]
lea ecx, [ebp - 0x158]
mov eax, ecx
sub edx, eax
nop dword [eax + eax]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
test al, al
jne 0x49ce30
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x158]
mov edx, str._A_ScriptDir_
push 0
push eax
mov ecx, edi
call fcn.0049acc0
add esp, 0x18
mov edx, str._A_AppData_
mov ecx, edi
call fcn.0049a8f0
test eax, eax
je 0x49ce9c
lea eax, [ebp - 0x158]
push str.A_AppData
push eax
call fcn.0045b6a0
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x158]
mov edx, str._A_AppData_
push 0
push eax
mov ecx, edi
call fcn.0049acc0
add esp, 0x20
mov edx, str._A_AppDataCommon_
mov ecx, edi
call fcn.0049a8f0
test eax, eax
je 0x49cedc
lea eax, [ebp - 0x158]
push str.A_AppDataCommon
push eax
call fcn.0045b6a0
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x158]
mov edx, str._A_AppDataCommon_
push 0
push eax
mov ecx, edi
call fcn.0049acc0
add esp, 0x20
mov edx, str._A_AhkPath_
mov ecx, edi
call fcn.0049a8f0
test eax, eax
je 0x49cf36
push 0x104
lea eax, [ebp - 0x260]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x260]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x159], al
test al, al
jne 0x49cf02
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x158]
mov edx, str._A_AhkPath_
push 0
push eax
mov ecx, edi
call fcn.0049acc0
add esp, 0x18
mov edx, str._A_AhkDir_
mov ecx, edi
call fcn.0049a8f0
test eax, eax
je 0x49cfad
push 0x104
lea eax, [ebp - 0x260]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x260]
push 0x5c
push eax
call fcn.004b4423
mov esi, eax
lea eax, [ebp - 0x260]
sub esi, eax
push esi
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.004b9ca3
add esp, 0x14
mov byte [ebp + esi - 0x158], 0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x158]
mov edx, str._A_AhkDir_
mov ecx, edi
push 0
push 0
push esi
push 1
push 0
push eax
call fcn.0049acc0
add esp, 0x18
mov edx, str._A_DllDir_
mov ecx, edi
call fcn.0049a8f0
test eax, eax
je 0x49d042
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x260]
push 0x104
push eax
push dword [0x4e79b8]
call esi
test eax, eax
jne 0x49cfef
push 0x104
lea eax, [ebp - 0x260]
push eax
push 0
call esi
lea eax, [ebp - 0x260]
push 0x5c
push eax
call fcn.004b4423
mov esi, eax
lea eax, [ebp - 0x260]
sub esi, eax
push esi
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.004b9ca3
add esp, 0x14
mov byte [ebp + esi - 0x158], 0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x158]
mov edx, str._A_DllDir_
mov ecx, edi
push 0
push 0
push esi
push 1
push 0
push eax
call fcn.0049acc0
add esp, 0x18
mov edx, str._A_DllPath_
mov ecx, edi
call fcn.0049a8f0
test eax, eax
je 0x49d0b8
push 0x104
lea eax, [ebp - 0x260]
push eax
push dword [0x4e79b8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49d082
push 0x104
lea eax, [ebp - 0x260]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x260]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x159], al
test al, al
jne 0x49d084
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x158]
mov edx, str._A_DllPath_
push 0
push eax
mov ecx, edi
call fcn.0049acc0
add esp, 0x18
push 0x25
push edi
call fcn.004b7be9
add esp, 8
test eax, eax
je 0x49d0d2
push edi
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 0x49d5b9
push 0x2c
push edi
call fcn.004b7be9
add esp, 8
test eax, eax
je 0x49d0ef
push 0x2c
push edi
call fcn.004b7be9
add esp, 8
mov byte [eax], 0
mov edx, str._s_A_Fa_f0_9__:_A_Fa_f0_9____s_
mov ecx, edi
call fcn.00461b40
test eax, eax
je 0x49d20a
push 0x3a
push edi
mov dword [ebp - 0x1c], 0x7830
call fcn.004b7be9
add esp, 8
test eax, eax
je 0x49d12a
push 0x3a
push edi
call fcn.004b7be9
mov esi, eax
add esp, 8
sub esi, edi
jmp 0x49d139
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x49d130
sub esi, ecx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.00497860
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x49d15c
push edi
push str.Out_of_memory.
jmp 0x49d5b9
push 0x40
push 0x1000
push dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x49d17c
push edi
push str.Could_not_commit_memory_for_DllImport.
jmp 0x49d5b9
xor edx, edx
mov dword [ebp - 0x20], edx
test esi, esi
jle 0x49d1bf
lea eax, [edx + edi]
push 2
push eax
lea eax, [ebp - 0x1a]
push eax
call fcn.004b9ca3
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x10
push 0
push eax
call fcn.004b2b92
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 0x28]
shr ecx, 1
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x20], edx
cmp edx, esi
jl 0x49d185
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x49d216
push 0x5c
push edi
call fcn.004b4423
mov esi, eax
add esp, 8
test esi, esi
je 0x49d1ef
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x49d1ec
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [esi], 0x5c
xor edx, edx
mov ecx, edi
call fcn.0045d890
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x49d216
push edi
push str.Call_to_nonexistent_function.
jmp 0x49d5b9
mov ecx, edi
call fcn.00404660
mov dword [ebp - 0x28], eax
jmp 0x49d1c2
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49d220
sub ecx, esi
or edx, 0xffffffff
lea esi, [edi + 1]
add esi, ecx
mov ecx, esi
call fcn.004977f0
mov edi, eax
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x2c], edi
cmp byte [edi], 0
je 0x49d258
mov ecx, edi
call fcn.00417810
mov dword [ebp - 0x18], 1
test eax, eax
je 0x49d25f
mov dword [ebp - 0x18], 0
cmp byte [edi], 0
je 0x49d2af
push 0x2c
push esi
call fcn.004b7be9
add esp, 8
test eax, eax
je 0x49d297
push 0x2c
push esi
call fcn.004b7be9
mov esi, eax
add esp, 8
test esi, esi
je 0x49d285
inc esi
inc dword [ebp - 0x18]
push 0x2c
push esi
call fcn.004b7be9
add esp, 8
test eax, eax
jne 0x49d273
cmp byte [edi], 0
je 0x49d2af
cmp dword [ebp - 0x18], 1
jge 0x49d2af
push dword [ebp - 0x24]
push str.Parameter_3_required
jmp 0x49d5b9
mov ecx, 0x10
call fcn.00497860
mov edi, eax
mov dword [ebp - 0x48], edi
test edi, edi
je 0x49d3c6
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0x20
movups xmmword [edi], xmm0
test al, 1
jne 0x49d2e6
mov dword [edi + 8], 2
jmp 0x49d39a
mov al, byte [esi]
cmp al, 0x20
je 0x49d2f0
cmp al, 9
jne 0x49d2f3
inc esi
jmp 0x49d2e6
push 5
push str.CDecl
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x49d342
mov edx, 0x10
add esi, 5
mov dword [ebp - 0x1c], edx
nop dword [eax]
mov al, byte [esi]
cmp al, 0x20
je 0x49d32a
cmp al, 9
jne 0x49d32d
inc esi
jmp 0x49d320
mov dword [ebp - 0x40], esi
test al, al
jne 0x49d342
mov dword [edi + 8], 2
mov ecx, 2
jmp 0x49d372
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.0045d180
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x49d36b
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
dec eax
cmp byte [edi + 0xc], 0
mov dword [ebp - 0x18], eax
jne 0x49d39a
cmp ecx, 7
jne 0x49d38c
or edx, 0x200
jmp 0x49d397
cmp ecx, 6
jne 0x49d39a
or edx, 0x100
mov dword [ebp - 0x1c], edx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
je 0x49d3d5
mov esi, edi
shl esi, 4
mov ecx, esi
call fcn.00497860
mov ecx, esi
mov dword [ebp - 0x20], eax
call fcn.00497860
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x34], eax
je 0x49d3c6
test eax, eax
jne 0x49d3e3
push 0x4d0335
push str.Out_of_memory.
jmp 0x49d5b9
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
shl edi, 2
mov ecx, edi
call fcn.00497860
mov esi, eax
mov dword [ebp - 0x24], esi
test edi, edi
je 0x49d3fa
test esi, esi
je 0x49d3c6
push edi
xor edx, edx
mov ecx, esi
call fcn.004058f0
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 1
cmp eax, 1
jle 0x49d5ac
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
push 0x2c
push eax
call fcn.004b7be9
mov edi, eax
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
add esp, 8
mov edx, esi
mov dword [ebp - 0x50], eax
mov byte [edi], 0
inc edi
call fcn.0045d180
mov eax, dword [esi + 8]
cmp eax, 8
ja case.0x49d453.2
jmp dword [eax*4 + 0x49d5d8]
mov ecx, edi
call fcn.00404660
or eax, edx
jne case.0x49d453.0
mov dword [esi], edi
jmp 0x49d525
mov ecx, edi
call fcn.00404660
or eax, edx
jne case.0x49d453.0
push 0x2c
push edi
call fcn.004b7be9
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x49d494
mov byte [eax], 0
push 0xc
call fcn.004ae4f6
add esp, 4
mov dword [ebp - 0x3c], eax
push 0
push 0xffffffffffffffff
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040c410
mov ecx, dword [ebp - 0x30]
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x49d4d6
mov byte [eax], 0x2c
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + ecx*4]
mov ecx, edx
call fcn.0046ce10
jmp 0x49d523
mov ecx, edi
call fcn.00427480
cmp dword [esi + 8], 6
movsd qword [esi], xmm0
jne 0x49d525
cvtsd2ss xmm0, xmm0
movss dword [esi], xmm0
jmp 0x49d525
cmp byte [esi + 0xd], 0
je 0x49d519
cmp eax, 5
jne 0x49d519
mov ecx, edi
call fcn.00404660
or eax, edx
jne 0x49d519
mov ecx, edi
call fcn.004488e0
jmp 0x49d520
mov ecx, edi
call fcn.00404660
mov dword [esi + 4], edx
mov dword [esi], eax
push 0x2c
push edi
call fcn.004b7be9
add esp, 8
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x49d53e
mov byte [eax], 0
inc eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add esi, 0x10
mov edx, dword [ebp - 0x30]
add ecx, 2
inc edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], edx
cmp ecx, dword [ebp - 0x18]
jl 0x49d426
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
cmp byte [ebp - 0x11], 0
je 0x49d56d
test eax, eax
je 0x49d56d
mov byte [edi], 0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x34], eax
mov eax, 3
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x28], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [ebp - 0x3c]
jmp 0x49d560
push dword [ebp - 0x24]
push str.Parameter_2_required
mov ecx, 0x4e9a70
call fcn.004470d0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret