Function at 0x480310
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a349e
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x264]
push esi
push edi
mov ebx, ecx
mov al, byte [ebx]
cmp al, 0x20
je 0x480342
cmp al, 9
jne 0x480345
inc ebx
jmp 0x480338
push 0x2c
push ecx
call fcn.00492af1
mov esi, eax
add esp, 8
test esi, esi
je 0x480c15
cmp byte [esi], 0
je 0x480c15
push 0x2c
push ebx
inc esi
call fcn.00492af1
add esp, 8
test eax, eax
je 0x480381
push 0x2c
push ebx
call fcn.00492af1
add esp, 8
mov byte [eax], 0
or eax, 0xffffffff
mov edi, esi
call fcn.00416e50
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480390
lea ecx, [esp + 0x20]
push ecx
sub eax, edx
push eax
push ebx
mov ecx, 0x4bd7e0
call fcn.00423260
test eax, eax
je 0x4803b9
push ebx
push str.Duplicate_function_definition.
jmp 0x480c1b
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4803c0
sub eax, edx
mov edi, eax
jne 0x4803dd
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4803d2
sub eax, edx
mov edi, eax
cmp edi, 0xfd
jbe 0x4803fc
push ebx
push str.Function_name_too_long.
mov ecx, 0x4bd7e0
call fcn.004330b0
xor eax, eax
jmp 0x480c25
push edi
lea edx, [esp + 0x158]
push ebx
push edx
call fcn.004954d0
add esp, 0xc
lea eax, [esp + 0x154]
push 2
push eax
mov byte [esp + edi + 0x15c], 0
call fcn.004822c0
add esp, 8
test eax, eax
je 0x4803f5
mov ecx, edi
lea ebx, [esp + 0x154]
call fcn.0047b110
mov edi, eax
test edi, edi
je 0x4803f5
cmp dword [0x4bd738], 0
jne 0x480457
call fcn.0047b210
mov dword [0x4bd738], eax
test eax, eax
je 0x48049e
mov ecx, dword [0x4bd73c]
cmp dword [ecx + 8], 0x54
jae 0x480475
call fcn.0047b210
mov ecx, dword [0x4bd73c]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x48049e
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffac
lea edx, [eax + 0x54]
mov dword [0x4bd740], eax
mov dword [ecx + 4], edx
test eax, eax
je 0x48049e
xor dl, dl
mov ecx, edi
call fcn.004188b0
mov ebx, eax
mov dword [esp + 0x3c], ebx
test ebx, ebx
jne 0x4804b9
push 0x4a6869
push str.Out_of_memory.
mov ecx, 0x4bd7e0
call fcn.004330b0
xor eax, eax
jmp 0x480c25
mov eax, dword [0x4bdb48]
mov ecx, dword [0x4bdb4c]
cmp eax, ecx
jne 0x4804ff
lea edi, [ecx + ecx]
test ecx, ecx
jne 0x4804d4
mov edi, 0x64
mov ecx, dword [0x4bdb44]
lea eax, [edi*4]
push eax
push ecx
call fcn.004924ea
add esp, 8
test eax, eax
je 0x48049e
mov dword [0x4bdb44], eax
mov eax, dword [0x4bdb48]
mov dword [0x4bdb4c], edi
mov edi, dword [esp + 0x20]
cmp edi, eax
je 0x480524
mov edx, dword [0x4bdb44]
sub eax, edi
add eax, eax
add eax, eax
lea ecx, [edx + edi*4]
push eax
push ecx
add ecx, 4
push ecx
call fcn.004926e0
add esp, 0xc
mov eax, dword [0x4bdb44]
mov dword [eax + edi*4], ebx
inc dword [0x4bdb48]
mov edi, ebp
sub edi, esi
push str._A_ScriptDir_
mov eax, esi
mov dword [ebx + 8], 0x44c370
mov byte [ebx + 0x51], 1
mov dword [ebx + 0x14], 0
add edi, 0x4001
call fcn.0047e090
add esp, 4
test eax, eax
je 0x48058d
lea ecx, [esp + 0x4c]
push str.A_ScriptDir
push ecx
call fcn.00449430
push 0
push 1
push 0
lea edx, [esp + 0x60]
push edx
push str._A_ScriptDir_
push esi
xor eax, eax
mov ecx, edi
call fcn.0047e480
add esp, 0x20
push str._A_AppData_
mov eax, esi
call fcn.0047e090
add esp, 4
test eax, eax
je 0x4805cc
lea eax, [esp + 0x4c]
push str.A_AppData
push eax
call fcn.00448db0
push 0
push 1
push 0
lea ecx, [esp + 0x60]
push ecx
push str._A_AppData_
push esi
xor eax, eax
mov ecx, edi
call fcn.0047e480
add esp, 0x20
push str._A_AppDataCommon_
mov eax, esi
call fcn.0047e090
add esp, 4
test eax, eax
je 0x48060b
lea edx, [esp + 0x4c]
push str.A_AppDataCommon
push edx
call fcn.00448db0
push 0
push 1
push 0
lea eax, [esp + 0x60]
push eax
push str._A_AppDataCommon_
push esi
xor eax, eax
mov ecx, edi
call fcn.0047e480
add esp, 0x20
push str._A_AhkPath_
mov eax, esi
call fcn.0047e090
add esp, 4
test eax, eax
je 0x48064a
lea ecx, [esp + 0x4c]
push str.A_AhkPath
push ecx
call fcn.00448860
push 0
push 1
push 0
lea edx, [esp + 0x60]
push edx
push str._A_AhkPath_
push esi
xor eax, eax
mov ecx, edi
call fcn.0047e480
add esp, 0x20
push str._A_AhkDir_
mov eax, esi
call fcn.0047e090
add esp, 4
test eax, eax
je 0x480689
lea eax, [esp + 0x4c]
push str.A_AhkDir
push eax
call fcn.004488c0
push 0
push 1
push 0
lea ecx, [esp + 0x60]
push ecx
push str._A_AhkDir_
push esi
xor eax, eax
mov ecx, edi
call fcn.0047e480
add esp, 0x20
push str._A_DllDir_
mov eax, esi
call fcn.0047e090
add esp, 4
test eax, eax
je 0x4806c8
lea edx, [esp + 0x4c]
push str.A_DllDir
push edx
call fcn.00448950
push 0
push 1
push 0
lea eax, [esp + 0x60]
push eax
push str._A_DllDir_
push esi
xor eax, eax
mov ecx, edi
call fcn.0047e480
add esp, 0x20
push str._A_DllPath_
mov eax, esi
call fcn.0047e090
add esp, 4
test eax, eax
je 0x480707
lea ecx, [esp + 0x4c]
push str.A_DllPath
push ecx
call fcn.004488f0
push 0
push 1
push 0
lea edx, [esp + 0x60]
push edx
push str._A_DllPath_
push esi
xor eax, eax
mov ecx, edi
call fcn.0047e480
add esp, 0x20
push 0x25
push esi
call fcn.00492af1
add esp, 8
test eax, eax
je 0x480721
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 0x480c1b
push 0x2c
push esi
call fcn.00492af1
add esp, 8
test eax, eax
je 0x48073e
push 0x2c
push esi
call fcn.00492af1
add esp, 8
mov byte [eax], 0
mov edx, str._s_A_Fa_f0_9__:_A_Fa_f0_9____s_
call fcn.0044f090
test eax, eax
je 0x480806
push 0x3a
push esi
mov dword [esp + 0x18], 0x7830
call fcn.00492af1
add esp, 8
test eax, eax
je 0x480778
push 0x3a
push esi
call fcn.00492af1
mov ebx, eax
add esp, 8
sub ebx, esi
jmp 0x480789
mov ebx, esi
lea ecx, [ebx + 1]
lea ecx, [ecx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x480780
sub ebx, ecx
mov eax, ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov eax, edi
call fcn.0047b180
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x4807ae
push esi
push str.Out_of_memory.
jmp 0x480c1b
push 0x40
push 0x1000
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4807cc
push esi
push str.Could_not_commit_memory_for_DllImport.
jmp 0x480c1b
xor edi, edi
test ebx, ebx
jle 0x480811
push 2
lea ecx, [edi + esi]
push ecx
lea edx, [esp + 0x1a]
push edx
call fcn.00494746
add esp, 0xc
push 0x10
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004933d7
mov ecx, edi
shr ecx, 1
add edi, 2
add esp, 0xc
mov byte [ecx + ebp], al
cmp edi, ebx
jl 0x4807d2
jmp 0x480811
call fcn.00415b60
mov ebp, eax
mov dword [esp + 0x28], eax
test ebp, ebp
jne 0x48085c
push 0x5c
push esi
call fcn.00493de2
mov edi, eax
add esp, 8
test edi, edi
je 0x48083e
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x48083b
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [edi], 0x5c
push 0
push esi
call fcn.0044ad30
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x48085c
push esi
push str.Call_to_nonexistent_function.
jmp 0x480c1b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480861
sub eax, edx
lea ebx, [esi + eax + 1]
or ecx, 0xffffffff
call fcn.0047b110
mov ebp, eax
cmp byte [ebp], 0
mov byte [esp + 0x17], 0
je 0x480899
mov esi, ebp
call fcn.0040dc30
test eax, eax
jne 0x480899
mov esi, 1
mov dword [esp + 0x18], esi
jmp 0x4808a5
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
cmp byte [ebp], 0
je 0x480903
push 0x2c
push ebx
call fcn.00492af1
add esp, 8
test eax, eax
je 0x4808e6
lea ebx, [ebx]
push 0x2c
push ebx
call fcn.00492af1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4808d2
inc ebx
push 0x2c
push ebx
inc esi
call fcn.00492af1
add esp, 8
test eax, eax
jne 0x4808c0
mov dword [esp + 0x18], esi
cmp byte [ebp], 0
je 0x480903
cmp esi, 1
jge 0x480903
mov edx, dword [esp + 0x26c]
push edx
push str.Parameter_3_required
jmp 0x480c1b
mov eax, 0x10
call fcn.0047b180
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
jne 0x480926
push 0x4a6869
push str.Out_of_memory.
jmp 0x480c1b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, esi
and eax, 0x80000001
mov dword [esp + 0x10], 0x20
jns 0x480949
dec eax
or eax, 0xfffffffe
inc eax
jne 0x480957
mov dword [edi + 8], 2
jmp 0x4809fe
mov al, byte [ebx]
cmp al, 0x20
je 0x480961
cmp al, 9
jne 0x480964
inc ebx
jmp 0x480957
push 5
push str.CDecl
push ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0
call fcn.004924d0
add esp, 0xc
test eax, eax
jne 0x4809b1
mov dword [esp + 0x10], 0x10
lea eax, [ebx + 5]
nop
mov cl, byte [eax]
cmp cl, 0x20
je 0x48099c
cmp cl, 9
jne 0x48099f
inc eax
jmp 0x480990
cmp byte [eax], 0
mov dword [esp + 0x30], eax
jne 0x4809b1
mov dword [edi + 8], 2
jmp 0x4809d4
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.0044a6d0
add esp, 8
cmp dword [edi + 8], 0
jne 0x4809cf
mov eax, 4
jmp 0x480c25
mov byte [esp + 0x17], 1
dec esi
cmp byte [edi + 0xc], 0
mov dword [esp + 0x18], esi
jne 0x4809fe
mov eax, dword [edi + 8]
cmp eax, 7
jne 0x4809f1
or dword [esp + 0x10], 0x200
jmp 0x4809fe
cmp eax, 6
jne 0x4809fe
or dword [esp + 0x10], 0x100
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
je 0x480ac3
mov esi, ebx
shl esi, 4
mov eax, esi
call fcn.0047b180
mov dword [esp + 0x24], eax
mov eax, esi
call fcn.0047b180
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
je 0x480917
test eax, eax
je 0x480917
lea esi, [ebx*4]
mov eax, esi
call fcn.0047b180
mov ebx, eax
mov dword [esp + 0x2c], ebx
test esi, esi
je 0x480a5b
test ebx, ebx
je 0x480917
push esi
push 0
push ebx
call fcn.0049a020
mov eax, 1
add esp, 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], eax
cmp dword [esp + 0x18], eax
jle 0x480bcc
mov edi, dword [esp + 0x24]
mov dword [esp + 0x48], 0
mov edi, edi
push 0x2c
push ebp
call fcn.00492af1
mov esi, eax
lea edx, [esp + 0x4c]
push edi
mov byte [esi], 0
push edx
inc esi
mov dword [esp + 0x54], ebp
call fcn.0044a6d0
mov eax, dword [edi + 8]
add esp, 0x10
cmp eax, 8
ja case.0x480abc.2
jmp dword [eax*4 + 0x480c40]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
jmp 0x480a3b
call fcn.00415b60
or eax, edx
jne case.0x480abc.0
mov dword [edi], esi
jmp 0x480b90
call fcn.00415b60
or eax, edx
jne case.0x480abc.0
push 0xc
call fcn.004943b7
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x264], 0
test eax, eax
je 0x480b21
push 0
push eax
or ecx, 0xffffffff
mov edx, esi
call fcn.00456f90
mov ebx, eax
jmp 0x480b23
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x264], 0xffffffff
push ebx
mov dword [eax + ecx*4], ebx
call fcn.00456e90
mov edx, dword [ebx + 4]
mov byte [ebx + 8], 1
mov eax, dword [edx]
mov dword [edi], eax
jmp 0x480b90
call fcn.00416fd0
fst qword [edi]
cmp dword [edi + 8], 6
jne 0x480b8e
fstp dword [edi]
jmp 0x480b90
cmp byte [edi + 0xd], 0
je 0x480b78
cmp eax, 5
jne 0x480b78
call fcn.00415b60
or eax, edx
jne 0x480b78
call fcn.00434560
jmp 0x480b7d
call fcn.00415b60
cmp dword [edi + 8], 5
mov dword [edi + 4], edx
mov dword [edi], eax
je 0x480b90
mov ecx, eax
mov dword [edi], ecx
jmp 0x480b90
fstp st(0)
push 0x2c
push esi
call fcn.00492af1
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x480ba6
mov byte [ebp], 0
inc ebp
mov eax, dword [esp + 0x38]
inc dword [esp + 0x1c]
add eax, 2
add edi, 0x10
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x18]
jl 0x480a90
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
jmp 0x480bd0
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x17], 0
je 0x480be1
cmp dword [esp + 0x18], 0
je 0x480be1
mov byte [esi], 0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x20], edi
mov dword [eax + 0x28], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x34], edx
mov eax, 3
jmp 0x480c25
push ebp
push str.Parameter_2_required
mov ecx, 0x4bd7e0
call fcn.004330b0
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x258
ret