Function at 0x49fed0
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 0x4b90af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x458
push esi
push edi
mov dword [ebp - 0x24], edx
mov esi, ecx
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x49ff1d
cmp eax, 9
jne 0x49ff22
add esi, 2
jmp 0x49ff10
push 0x2c
push ecx
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x4a080c
cmp word [edi], 0
je 0x4a080c
push 0x2c
add edi, 2
push esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x49ff69
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
xor ecx, ecx
mov word [eax], cx
or edx, 0xffffffff
mov ecx, edi
call fcn.00428370
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ff80
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push eax
push ecx
push esi
mov ecx, 0x4e8b78
call fcn.00439c90
test eax, eax
je 0x49ffae
push esi
push str.Duplicate_function_definition.
jmp 0x4a0814
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ffb3
push 0
push dword [ebp - 0x2c]
sub ecx, edx
sar ecx, 1
push 0
push ecx
push esi
mov ecx, 0x4e8b78
call fcn.0043b240
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x49ffef
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 dword [eax + 8], 0x461dc0
mov esi, 0x4001
mov byte [eax + 0x51], 1
mov edx, str._A_ScriptDir_
mov dword [eax + 0x14], 0
mov ecx, edi
mov eax, edi
sub eax, dword [ebp - 0x24]
sar eax, 1
sub esi, eax
mov dword [ebp - 0x1c], esi
call fcn.0049d970
test eax, eax
je 0x4a005f
mov ecx, dword [0x4e965c]
lea edx, [ebp - 0x260]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x4a0030
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x260]
mov edx, str._A_ScriptDir_
push 0
push eax
mov ecx, edi
call fcn.0049dd60
add esp, 0x18
mov edx, str._A_AppData_
mov ecx, edi
call fcn.0049d970
test eax, eax
je 0x4a009f
lea eax, [ebp - 0x260]
push str.A_AppData
push eax
call fcn.0045e370
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x260]
mov edx, str._A_AppData_
push 0
push eax
mov ecx, edi
call fcn.0049dd60
add esp, 0x20
mov edx, str._A_AppDataCommon_
mov ecx, edi
call fcn.0049d970
test eax, eax
je 0x4a00df
lea eax, [ebp - 0x260]
push str.A_AppDataCommon
push eax
call fcn.0045e370
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x260]
mov edx, str._A_AppDataCommon_
push 0
push eax
mov ecx, edi
call fcn.0049dd60
add esp, 0x20
mov edx, str._A_AhkPath_
mov ecx, edi
call fcn.0049d970
test eax, eax
je 0x4a013c
push 0x104
lea eax, [ebp - 0x468]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x468]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x262], ax
test ax, ax
jne 0x4a0105
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x260]
mov edx, str._A_AhkPath_
push 0
push eax
mov ecx, edi
call fcn.0049dd60
add esp, 0x18
mov edx, str._A_AhkDir_
mov ecx, edi
call fcn.0049d970
test eax, eax
je 0x4a01b6
push 0x104
lea eax, [ebp - 0x468]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x468]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
lea eax, [ebp - 0x468]
sub esi, eax
sar esi, 1
push esi
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0x14
xor eax, eax
mov word [ebp + esi*2 - 0x260], ax
mov edx, str._A_AhkDir_
mov esi, dword [ebp - 0x1c]
mov ecx, edi
push eax
push eax
push esi
push 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0049dd60
add esp, 0x18
mov edx, str._A_DllDir_
mov ecx, edi
call fcn.0049d970
test eax, eax
je 0x4a024e
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x468]
push 0x104
push eax
push dword [0x4e6a50]
call esi
test eax, eax
jne 0x4a01f8
push 0x104
lea eax, [ebp - 0x468]
push eax
push 0
call esi
lea eax, [ebp - 0x468]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
lea eax, [ebp - 0x468]
sub esi, eax
sar esi, 1
push esi
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0x14
xor eax, eax
mov word [ebp + esi*2 - 0x260], ax
mov edx, str._A_DllDir_
mov esi, dword [ebp - 0x1c]
mov ecx, edi
push eax
push eax
push esi
push 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0049dd60
add esp, 0x18
mov edx, str._A_DllPath_
mov ecx, edi
call fcn.0049d970
test eax, eax
je 0x4a02c7
push 0x104
lea eax, [ebp - 0x468]
push eax
push dword [0x4e6a50]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4a028e
push 0x104
lea eax, [ebp - 0x468]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x468]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x262], ax
test ax, ax
jne 0x4a0290
push 0
push 0
push esi
push 1
lea eax, [ebp - 0x260]
mov edx, str._A_DllPath_
push 0
push eax
mov ecx, edi
call fcn.0049dd60
add esp, 0x18
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
push 0x25
push edi
call esi
add esp, 8
test eax, eax
je 0x4a02e4
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 0x4a0814
push 0x2c
push edi
call esi
add esp, 8
test eax, eax
je 0x4a02fd
push 0x2c
push edi
call esi
add esp, 8
xor ecx, ecx
mov word [eax], cx
mov edx, str._s_A_Fa_f0_9__:_A_Fa_f0_9____s_
mov ecx, edi
call fcn.00464c00
test eax, eax
je 0x4a0431
push 0x3a
push edi
mov dword [ebp - 0x38], 0x780030
mov dword [ebp - 0x34], 0
call esi
add esp, 8
test eax, eax
je 0x4a0339
push 0x3a
push edi
call esi
mov esi, eax
add esp, 8
sub esi, edi
jmp 0x4a034d
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a0340
sub esi, ecx
sar esi, 1
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.0049aa40
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4a0372
push edi
push 0x4cebc0
jmp 0x4a0814
push 0x40
push 0x1000
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4a0392
push edi
push str.Could_not_commit_memory_for_DllImport.
jmp 0x4a0814
test esi, esi
jle 0x4a03de
mov eax, edi
xor edi, edi
mov dword [ebp - 0x1c], eax
nop dword [eax]
push 2
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x10
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov edx, dword [ebp - 0x28]
mov ecx, edi
shr ecx, 1
add edi, 2
add esp, 0xc
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
cmp edi, esi
jl 0x4a03a0
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4a043d
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4a0416
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4a040e
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, 0x5c
mov word [esi], ax
xor edx, edx
mov ecx, edi
call fcn.00460890
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4a043d
push edi
push str.Call_to_nonexistent_function.
jmp 0x4a0814
mov ecx, edi
call fcn.00404ce0
mov dword [ebp - 0x28], eax
jmp 0x4a03e1
mov ecx, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0442
sub ecx, esi
or edx, 0xffffffff
sar ecx, 1
inc ecx
lea esi, [edi + ecx*2]
mov ecx, esi
call fcn.0049a9c0
mov edi, eax
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x20], edi
cmp word [edi], 0
je 0x4a0480
mov ecx, edi
call fcn.00418450
mov dword [ebp - 0x18], 1
test eax, eax
je 0x4a0487
mov dword [ebp - 0x18], 0
cmp word [edi], 0
je 0x4a04e1
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x4a04c8
nop dword [eax]
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4a04b5
add esi, 2
inc dword [ebp - 0x18]
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4a04a0
cmp word [edi], 0
je 0x4a04e1
cmp dword [ebp - 0x18], 1
jge 0x4a04e1
push dword [ebp - 0x24]
push str.Parameter_3_required
jmp 0x4a0814
mov ecx, 0x10
call fcn.0049aa40
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x4a0600
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0x20
movups xmmword [edi], xmm0
test al, 1
jne 0x4a0518
mov dword [edi + 8], 2
jmp 0x4a05d4
movzx eax, word [esi]
cmp eax, 0x20
je 0x4a0525
cmp eax, 9
jne 0x4a052a
add esi, 2
jmp 0x4a0518
push 5
push str.CDecl
push esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4a057c
mov edx, 0x10
add esi, 0xa
mov dword [ebp - 0x30], edx
movzx eax, word [esi]
cmp eax, 0x20
je 0x4a0561
cmp eax, 9
jne 0x4a0566
add esi, 2
jmp 0x4a0554
mov dword [ebp - 0x38], esi
test ax, ax
jne 0x4a057c
mov dword [edi + 8], 2
mov ecx, 2
jmp 0x4a05ac
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00460130
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x4a05a5
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 - 0x30]
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
dec eax
cmp byte [edi + 0xc], 0
mov dword [ebp - 0x18], eax
jne 0x4a05d4
cmp ecx, 7
jne 0x4a05c6
or edx, 0x200
jmp 0x4a05d1
cmp ecx, 6
jne 0x4a05d4
or edx, 0x100
mov dword [ebp - 0x30], edx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
je 0x4a060f
mov esi, edi
shl esi, 4
mov ecx, esi
call fcn.0049aa40
mov ecx, esi
mov dword [ebp - 0x3c], eax
call fcn.0049aa40
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], eax
je 0x4a0600
test eax, eax
jne 0x4a061d
push 0x4bac30
push 0x4cebc0
jmp 0x4a0814
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
shl edi, 2
mov ecx, edi
call fcn.0049aa40
mov esi, eax
mov dword [ebp - 0x24], esi
test edi, edi
je 0x4a0634
test esi, esi
je 0x4a0600
push edi
xor edx, edx
mov ecx, esi
call fcn.00405ef0
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x40], 1
cmp eax, 1
jle 0x4a0807
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], edx
push 0x2c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov edi, eax
lea ecx, [ebp - 0x54]
xor eax, eax
add esp, 8
mov edx, esi
mov word [edi], ax
add edi, 2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
call fcn.00460130
mov eax, dword [esi + 8]
cmp eax, 8
ja case.0x4a0692.2
jmp dword [eax*4 + 0x4a0834]
mov ecx, edi
call fcn.00404ce0
or eax, edx
jne case.0x4a0692.0
mov dword [esi], edi
jmp 0x4a0779
mov ecx, edi
call fcn.00404ce0
or eax, edx
jne case.0x4a0692.0
push 0x2c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4a06d6
xor ecx, ecx
mov word [eax], cx
push 0xc
call fcn.004b74e9
mov dword [ebp - 0x34], eax
sub esp, 8
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.0046f580
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4a071f
mov ecx, 0x2c
mov word [eax], cx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x20], ecx
push ecx
call fcn.0040c8f0
mov eax, dword [ebp - 0x20]
mov byte [eax + 8], 1
mov eax, dword [eax + 4]
mov eax, dword [eax]
jmp 0x4a0777
mov ecx, edi
call fcn.004284b0
cmp dword [esi + 8], 6
movsd qword [esi], xmm0
jne 0x4a0779
cvtsd2ss xmm0, xmm0
movss dword [esi], xmm0
jmp 0x4a0779
cmp byte [esi + 0xd], 0
je 0x4a076d
cmp eax, 5
jne 0x4a076d
mov ecx, edi
call fcn.00404ce0
or eax, edx
jne 0x4a076d
mov ecx, edi
call fcn.0044a3b0
jmp 0x4a0774
mov ecx, edi
call fcn.00404ce0
mov dword [esi + 4], edx
mov dword [esi], eax
push 0x2c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4a0797
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x40]
add esi, 0x10
mov edx, dword [ebp - 0x1c]
add ecx, 2
inc edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x1c], edx
cmp ecx, dword [ebp - 0x18]
jl 0x4a0660
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
cmp byte [ebp - 0x11], 0
je 0x4a07c8
test eax, eax
je 0x4a07c8
xor eax, eax
mov word [edi], ax
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x30]
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 - 0x34]
jmp 0x4a07b9
push dword [ebp - 0x24]
push str.Parameter_2_required
mov ecx, 0x4e8b78
call fcn.00448ad0
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