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

Disassembly:
mov ecx, dword [0x5d8d34]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4aa9e4
sub esp, 0x6c
movzx eax, byte [esp + 0x74]
mov byte [esp + 0x60], al
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0x70]
mov ebp, dword [ebx + 0x14]
mov dword [esp + 0x30], ebp
lea ebp, [esp + 0x60]
mov dword [esp + 0x34], ebp
mov ebp, dword [0x5b9fcc]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x3c], esi
mov dword [esp], ebp
lea ebp, [0x517000]
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.004a9480
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x4aa83e
mov eax, dword [esp + 0x70]
jmp 0x4aa877
lea eax, [0x5d8e20]
mov dword [esp], eax
lea eax, [0x4f87fc]
mov dword [esp + 4], eax
call fcn.0047c200
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
call fcn.004aac60
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 8]
mov ebx, dword [eax + 0x20]
cmp ebx, ecx
jne 0x4aa9cd
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
lea edi, [esp + 0x40]
xor eax, eax
call fcn.0046cd88
lea ecx, [0x4aa9f0]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], ecx
movzx ecx, byte [esp + 0x74]
mov byte [esp + 0x48], cl
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], edx
lea esi, [esp + 0x20]
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x5c], esi
jmp 0x4aa931
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x2c]
mov ebx, dword [edx]
mov dword [esp], ebx
mov dword [esp + 4], ecx
movzx ecx, byte [esp + 0x74]
mov byte [esp + 8], cl
mov ebx, dword [esp + 0x78]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x28]
mov dword [esp + 0x14], esi
call fcn.004a9b20
movzx ecx, byte [esp + 0x74]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
mov eax, dword [edx]
mov edi, dword [esi + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edi
mov byte [esp + 8], cl
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004aa430
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x14]
test al, al
jne 0x4aa9a2
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x40]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x70]
mov ebp, dword [ebx + 0xc]
mov esi, dword [esp]
mov dword [esp], ecx
mov dword [esp + 4], ebp
movzx ecx, byte [esp + 0x74]
mov byte [esp + 8], cl
mov ebp, dword [esp + 0x78]
mov dword [esp + 0xc], ebp
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
call fcn.004aa030
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp], ecx
call fcn.004661f0
mov eax, dword [esp + 4]
test eax, eax
je 0x4aa8e2
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x80], eax
add esp, 0x6c
ret
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [0x4d41c0]
mov dword [esp + 8], eax
call fcn.00409920
nop
call fcn.0046b730
jmp fcn.004aa7c0