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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4af1fd
sub esp, 0x70
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x34], edx
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0x2c], ebx
xor eax, eax
jmp 0x4aef22
mov ebp, dword [esp + 0x30]
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
cmp eax, ebx
jge 0x4af018
mov dword [esp + 0x30], eax
mov ecx, dword [edx + eax*4]
mov ebx, dword [ecx]
mov ebp, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp], 0
lea edi, [0x4faab5]
mov dword [esp + 4], edi
mov dword [esp + 8], 8
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
lea ebx, [0x4fa399]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
call fcn.00442780
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x21000000
call fcn.004a7ba0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x4aef0f
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x4aefcb
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea eax, [0x4ff6cf]
mov dword [esp], eax
mov dword [esp + 4], 0x19
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x70
ret
mov edx, dword [ecx + 0x18]
lea edi, [esp + 0x40]
xor eax, eax
call fcn.00452d64
lea ecx, [0x4e7200]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [esp + 0x40]
mov dword [esp + 8], ecx
call fcn.0040c590
jmp 0x4af04e
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0040c7c0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4af132
mov ecx, dword [esp + 0x44]
mov edx, dword [eax]
mov ebx, dword [ecx]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], eax
lea eax, [0x4fa3a7]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
call fcn.004426e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0xa0000000
call fcn.004a7ba0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x4af042
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x4af0e5
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea eax, [0x5018bd]
mov dword [esp], eax
mov dword [esp + 4], 0x21
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x70
ret
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.004a9690
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x4af1e6
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x4af199
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea eax, [0x4ffca1]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x70
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x70
ret
call fcn.00451710
jmp fcn.004aeee0