Function at 0x4aa120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4aaab6
sub esp, 0x64
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4aa370
nop
lea eax, [0x4d0ce0]
mov dword [esp], eax
call fcn.0040b170
mov edi, dword [esp + 4]
mov eax, dword [0x5bb250]
test eax, eax
jne 0x4aa16d
mov ebx, dword [esp + 0x68]
mov dword [edi], ebx
jmp 0x4aa178
mov eax, dword [esp + 0x68]
call fcn.0045bfa0
mov ebx, eax
mov dword [esp + 0x38], edi
mov ebp, dword [esp + 0x7c]
test ebp, ebp
jne 0x4aa1b8
mov esi, dword [esp + 0x74]
test esi, esi
jne 0x4aa192
xor ecx, ecx
xor eax, eax
jmp 0x4aa1df
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x38]
jmp 0x4aa1df
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x54], eax
mov edx, ebp
mov ebp, dword [ebx + 0x140]
mov esi, dword [ebx + 0x144]
cmp esi, 4
jne 0x4aa205
cmp dword [ebp], 0x78696e75
je 0x4aa256
jmp 0x4aa27b
cmp esi, 8
jne 0x4aa21e
cmp dword [ebp], 0x78696e75
jne 0x4aa27b
cmp dword [ebp + 4], 0x6d617267
je 0x4aa256
jmp 0x4aa27b
cmp esi, 0xa
jne 0x4aa27b
mov dword [esp], ebp
lea eax, [0x4e152b]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00402580
movzx eax, byte [esp + 0xc]
test al, al
je 0x4aa267
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x38]
mov ebp, dword [ebx + 0x140]
mov esi, dword [ebx + 0x144]
jmp 0x4aa334
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x38]
mov ebp, dword [ebx + 0x144]
mov esi, dword [ebx + 0x140]
lea edi, [ebp - 1]
cmp ebp, edi
jbe 0x4aaaac
movzx edi, byte [ebp + esi - 1]
xchg edi, eax
cmp al, 0x34
xchg edi, eax
je 0x4aa2a5
xchg edi, eax
cmp al, 0x36
xchg edi, eax
jne 0x4aa2b5
mov edi, dword [esp + 0x38]
mov edi, esi
mov esi, ebp
mov ebp, edi
mov edi, dword [esp + 0x38]
jmp 0x4aa334
cmp dword [ebx + 0x134], 2
jne 0x4aa2fa
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea eax, [0x4e02cd]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00448f60
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
jmp 0x4aa334
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea eax, [0x4e02cf]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00448f60
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x84]
mov ebx, dword [edx]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea eax, [0x508bb8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x4aaa9a
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x4aa37e
xor ebp, ebp
xor esi, esi
jmp 0x4aa3f7
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x134]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x4aaa88
test ebp, ebp
je 0x4aa3f7
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.0046cd70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x4aaa1d
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4aa4bd
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0x134]
mov ebp, dword [esp + 0x80]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
test eax, eax
jne 0x4aa4ab
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call fcn.004a0430
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x4aa499
mov eax, dword [esp + 0x68]
mov byte [eax + 0x13c], 1
jmp 0x4aa4e5
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x64
ret
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x64
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004a0320
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x4aaa0b
mov eax, dword [esp + 0x68]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x58], ebp
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.0046ce50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x34]
test edx, edx
je 0x4aa6be
mov ebx, dword [esp + 0x68]
mov ebp, dword [ebx + 0x134]
cmp ebp, 1
jne 0x4aa548
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x4aa52e
lea ebp, [0x4eacbc]
jmp 0x4aa585
cmp ebp, 2
jne 0x4aa53b
lea ebp, [0x4eacb4]
jmp 0x4aa585
cmp ebp, 5
jne 0x4aa57f
lea ebp, [0x4eacb8]
jmp 0x4aa585
cmp ebp, 2
je 0x4aa552
cmp ebp, 0x17
jne 0x4aa57f
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x4aa565
lea ebp, [0x4eacac]
jmp 0x4aa585
cmp ebp, 2
jne 0x4aa572
lea ebp, [0x4eacb0]
jmp 0x4aa585
cmp ebp, 3
jne 0x4aa57f
lea ebp, [0x4eaca8]
jmp 0x4aa585
lea ebp, [0x4eac64]
mov ebx, dword [ebp]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, ebp
call ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x60], ebp
cmp ecx, 1
jne 0x4aa5df
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4aa5c5
lea ecx, [0x4eacbc]
jmp 0x4aa61c
cmp ecx, 2
jne 0x4aa5d2
lea ecx, [0x4eacb4]
jmp 0x4aa61c
cmp ecx, 5
jne 0x4aa616
lea ecx, [0x4eacb8]
jmp 0x4aa61c
cmp ecx, 2
je 0x4aa5e9
cmp ecx, 0x17
jne 0x4aa616
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4aa5fc
lea ecx, [0x4eacac]
jmp 0x4aa61c
cmp ecx, 2
jne 0x4aa609
lea ecx, [0x4eacb0]
jmp 0x4aa61c
cmp ecx, 3
jne 0x4aa616
lea ecx, [0x4eaca8]
jmp 0x4aa61c
lea ecx, [0x4eac68]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x34]
mov dword [esp], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x5bb250]
test ebx, ebx
jne 0x4aa65d
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x14c], edx
jmp 0x4aa670
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x44]
call fcn.0045bfa0
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x5bb250]
test ecx, ecx
jne 0x4aa688
mov dword [ebp + 0x154], eax
jmp 0x4aa693
lea edi, [ebp + 0x154]
call fcn.0045bfa0
lea eax, [0x4dcee0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x4cce40]
mov dword [esp + 8], eax
lea eax, [0x4eac58]
mov dword [esp + 0xc], eax
call fcn.00414350
jmp 0x4aa9f1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.0046cf30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
je 0x4aa8aa
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 0x134]
cmp ebx, 1
jne 0x4aa72d
mov ebx, dword [eax + 0x138]
cmp ebx, 1
jne 0x4aa713
lea ebx, [0x4eacbc]
jmp 0x4aa76a
cmp ebx, 2
jne 0x4aa720
lea ebx, [0x4eacb4]
jmp 0x4aa76a
cmp ebx, 5
jne 0x4aa764
lea ebx, [0x4eacb8]
jmp 0x4aa76a
cmp ebx, 2
je 0x4aa737
cmp ebx, 0x17
jne 0x4aa764
mov ebx, dword [eax + 0x138]
cmp ebx, 1
jne 0x4aa74a
lea ebx, [0x4eacac]
jmp 0x4aa76a
cmp ebx, 2
jne 0x4aa757
lea ebx, [0x4eacb0]
jmp 0x4aa76a
cmp ebx, 3
jne 0x4aa764
lea ebx, [0x4eaca8]
jmp 0x4aa76a
lea ebx, [0x4eac6c]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov edx, ebx
call eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x60], ebp
cmp ecx, 1
jne 0x4aa7cb
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4aa7b1
lea ecx, [0x4eacbc]
jmp 0x4aa808
cmp ecx, 2
jne 0x4aa7be
lea ecx, [0x4eacb4]
jmp 0x4aa808
cmp ecx, 5
jne 0x4aa802
lea ecx, [0x4eacb8]
jmp 0x4aa808
cmp ecx, 2
je 0x4aa7d5
cmp ecx, 0x17
jne 0x4aa802
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4aa7e8
lea ecx, [0x4eacac]
jmp 0x4aa808
cmp ecx, 2
jne 0x4aa7f5
lea ecx, [0x4eacb0]
jmp 0x4aa808
cmp ecx, 3
jne 0x4aa802
lea ecx, [0x4eaca8]
jmp 0x4aa808
lea ecx, [0x4eac70]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x5bb250]
test ebx, ebx
jne 0x4aa849
mov edx, dword [esp + 0x48]
mov dword [ebp + 0x14c], edx
jmp 0x4aa85c
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x48]
call fcn.0045bfa0
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x5bb250]
test ecx, ecx
jne 0x4aa874
mov dword [ebp + 0x154], eax
jmp 0x4aa87f
lea edi, [ebp + 0x154]
call fcn.0045bfa0
lea eax, [0x4dcee0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x4cce40]
mov dword [esp + 8], eax
lea eax, [0x4eac58]
mov dword [esp + 0xc], eax
call fcn.00414350
jmp 0x4aa9f1
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
cmp ecx, 1
jne 0x4aa8e6
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4aa8cc
lea ecx, [0x4eacbc]
jmp 0x4aa923
cmp ecx, 2
jne 0x4aa8d9
lea ecx, [0x4eacb4]
jmp 0x4aa923
cmp ecx, 5
jne 0x4aa91d
lea ecx, [0x4eacb8]
jmp 0x4aa923
cmp ecx, 2
je 0x4aa8f0
cmp ecx, 0x17
jne 0x4aa91d
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4aa903
lea ecx, [0x4eacac]
jmp 0x4aa923
cmp ecx, 2
jne 0x4aa910
lea ecx, [0x4eacb0]
jmp 0x4aa923
cmp ecx, 3
jne 0x4aa91d
lea ecx, [0x4eaca8]
jmp 0x4aa923
lea ecx, [0x4eac74]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], ecx
lea ebx, [0x4d10a0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 8], ebx
call fcn.00408cc0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x5bb250]
test ebx, ebx
jne 0x4aa995
mov edx, dword [esp + 0x4c]
mov dword [ebp + 0x14c], edx
jmp 0x4aa9a8
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045bfa0
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x5bb250]
test ecx, ecx
jne 0x4aa9c0
mov dword [ebp + 0x154], eax
jmp 0x4aa9cb
lea edi, [ebp + 0x154]
call fcn.0045bfa0
lea eax, [0x4dcee0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x4cce40]
mov dword [esp + 8], eax
lea eax, [0x4eac58]
mov dword [esp + 0xc], eax
call fcn.00414350
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x64
ret
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x64
ret
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], edx
lea eax, [0x4d2480]
mov dword [esp], eax
call fcn.0040b170
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x4e0571]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [0x5bb250]
test ecx, ecx
jne 0x4aaa60
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
jmp 0x4aaa70
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0045bfa0
mov eax, ecx
lea ecx, [0x50745c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x64
ret
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x64
ret
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
add esp, 0x64
ret
mov eax, edi
mov ecx, ebp
call fcn.0045c020
nop
call fcn.0045ab60
jmp fcn.004aa120