Function at 0x462a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x526b24]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x28], eax
mov ebx, ecx
nop
movzx eax, word [ebx]
cmp eax, 0x20
je 0x462a6d
cmp eax, 9
jne 0x462a72
add ebx, 2
jmp 0x462a60
push 0x2c
push ecx
mov dword [ebp - 0x18], ebx
call sub.VCRUNTIME140.dll_wcschr
mov edi, eax
add esp, 8
test edi, edi
je 0x463018
cmp word [edi], 0
je 0x463018
push 0x2c
add edi, 2
push ebx
mov dword [ebp - 0x14], edi
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
je 0x462ab9
push 0x2c
push ebx
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push edi
call fcn.0046ff30
mov eax, dword [0x62271c]
add esp, 8
cmp word [ebx], 0
mov ecx, dword fs:[0x2c]
lea esi, [eax*4]
mov eax, dword [esi + ecx]
jne 0x462b00
cmp byte [eax + 0x2198], 0
jne 0x462af5
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
push edi
push str.Empty_function_name__make_sure_to_use_space_after_DllImport_not__.
jmp 0x46304b
cmp byte [eax + 0x2198], 0
mov dword [ebp - 0x10], esi
jne 0x462b18
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
lea ecx, [ebp - 0x24]
push edi
push ecx
mov ecx, dword [eax + 0x298]
call fcn.004561d0
test eax, eax
jne 0x462b5b
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462b4e
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
push dword [ebp - 0x24]
push str.Reference_not_allowed_here__use__where_possible._Only__A_AhkPath___A_AhkDir___A_DllPath___A_DllDir___A_ScriptDir___A_AppData_Common____A_ThreadID___A_PtrSize__can_be_used_here.
jmp 0x46304b
push 0x2c
push edi
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
je 0x462b7a
push 0x2c
push edi
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
xor ecx, ecx
mov word [eax], cx
push str._s_A_Fa_f0_9__:_A_Fa_f0_9____s_
push edi
call fcn.0049dd50
add esp, 8
test eax, eax
je 0x462d67
push 0x3a
push edi
mov dword [ebp - 0xc], 0x780030
mov dword [ebp - 8], 0
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
je 0x462bbe
push 0x3a
push edi
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
sub esi, edi
jmp 0x462bd0
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x462bc3
sub esi, ecx
mov ecx, dword fs:[0x2c]
mov eax, dword [ebp - 0x10]
sar esi, 1
mov eax, dword [eax + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462bf4
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ecx]
mov ecx, dword [eax + 0x260]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov dword [ebp - 0x20], eax
call fcn.004df940
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x462c47
mov ecx, dword fs:[0x2c]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462c39
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov ecx, dword [ebx + ecx]
push edi
push str.Out_of_memory.
jmp 0x46304e
push 0x40
push 0x1000
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x462c8c
mov ecx, dword fs:[0x2c]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462c7e
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov ecx, dword [ebx + ecx]
push edi
push str.Could_not_commit_memory_for_DllImport.
jmp 0x46304e
test esi, esi
jle 0x462ccc
mov ebx, edi
xor edi, edi
push 2
lea eax, [ebp - 8]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
push 0x10
lea eax, [ebp - 0xc]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov edx, dword [ebp - 0x1c]
mov ecx, edi
shr ecx, 1
add edi, 2
add esp, 0x18
add ebx, 4
mov byte [ecx + edx], al
cmp edi, esi
jl 0x462c94
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462cee
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
mov edx, ebx
mov ecx, dword [eax + 0x298]
lea eax, [edx + 2]
mov dword [ebp - 0x14], eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x462d00
sub edx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push 0
push eax
lea eax, [ebp - 0x30]
sar edx, 1
push eax
push 0x41
push edx
push ebx
call fcn.0045d0e0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x462df1
mov cl, byte [eax + 0x15]
and cl, 0xfe
cmp cl, 2
je 0x462e49
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462d5c
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
push ebx
push str.Duplicate_function_definition.
jmp 0x46304b
push edi
call fcn.004e6170
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x462ccf
push 0x5c
push edi
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x462db1
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x462da6
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [ebp - 0x14]
mov ecx, 0x5c
mov word [eax], cx
push 0
push edi
call fcn.00497180
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x462ccf
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462de6
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
push edi
push str.Call_to_nonexistent_function.
jmp 0x46304b
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462e10
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
mov edx, ebx
mov ecx, dword [eax + 0x298]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x462e20
push 0x41
push dword [ebp - 0x2c]
sub edx, esi
push dword [ebp - 0x30]
sar edx, 1
push edx
push ebx
call fcn.00452840
mov dword [ebp - 0x18], eax
test eax, eax
je 0x463059
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462e50
mov ebx, dword [ebp - 0x10]
sub ecx, edx
sar ecx, 1
inc ecx
lea esi, [edi + ecx*2]
mov ecx, dword fs:[0x2c]
mov eax, dword [ebx + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462e85
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ebx + ecx]
push 0xffffffffffffffff
push esi
mov ecx, dword [eax + 0x260]
call fcn.004dfa20
mov dword [ebp - 0x10], eax
cmp word [eax], 0
je 0x462eb1
push eax
call fcn.004e6170
add esp, 4
test eax, eax
jne 0x462eb1
lea edi, [eax + 1]
jmp 0x462eb3
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
je 0x462ef4
push 0x2c
push esi
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
je 0x462ef4
nop dword [eax + eax]
push 0x2c
push esi
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
je 0x462ee4
add esi, 2
push 0x2c
push esi
inc edi
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
jne 0x462ed0
cmp edi, 1
jge 0x462f3f
mov ecx, dword fs:[0x2c]
mov eax, dword [ebx + ecx]
cmp byte [eax + 0x2198], 0
jne 0x462f18
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov ecx, dword [ebx + ecx]
push dword [ebp - 0x28]
push str.Parameter_3_required
mov ecx, dword [ecx + 0x298]
call fcn.0046cf30
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x463059
inc edi
mov eax, edi
mov dword [ebp - 0x14], edi
shl eax, 4
call fcn.004ec520
lea eax, [edi*4]
mov esi, esp
call fcn.004ec520
mov eax, dword [ebp - 0x1c]
mov ecx, esp
mov ebx, dword [ebp - 0x14]
mov edi, 1
cdq
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], 1
mov dword [esi + 4], edx
mov dword [ecx], esi
add esi, 0x10
mov dword [ebp - 0x20], ecx
push 0x2c
push eax
call sub.VCRUNTIME140.dll_wcschr
mov dword [ebp - 0x14], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
movzx edx, word [ecx]
cmp edx, 0x20
je 0x462fa0
cmp edx, 9
jne 0x462fa5
add ecx, 2
jmp 0x462f93
mov edx, dword [ebp - 0x20]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], 0
mov dword [esi + 4], 0xffffffff
mov dword [edx + edi*4], esi
test ecx, ecx
je 0x462fcd
xor eax, eax
mov word [ecx], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
inc edi
add esi, 0x10
cmp edi, ebx
jl 0x462f80
push ebx
push edx
call fcn.004929a0
add esp, 8
test eax, eax
je 0x462f2e
mov esi, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004e6ed0
push dword [ebp - 0x24]
mov byte [esi + 0x17], 2
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebadf
mov esp, ebp
pop ebp
ret
mov eax, dword [0x62271c]
mov ecx, dword fs:[0x2c]
lea esi, [eax*4]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x463043
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
push dword [ebp - 0x28]
push str.Parameter_2_required
mov ecx, dword [esi + ecx]
mov ecx, dword [ecx + 0x298]
call fcn.0046cf30
xor eax, eax
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebadf
mov esp, ebp
pop ebp
ret