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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4afb32
sub esp, 0x5c
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4afb23
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x90], ecx
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x4afade
mov ebp, dword [esp + 0x60]
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4afa5b
mov dword [esp + 0x8c], edx
mov dword [esp + 0x58], eax
test ebx, ebx
je 0x4af9d8
mov dword [esp], ebp
call fcn.004b15e0
mov eax, dword [esp + 4]
test byte [eax], al
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x4af95d
nop
mov dword [eax + 0x68], ecx
mov ecx, dword [0x5ab4f0]
test ecx, ecx
jne 0x4af948
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x6c], ecx
mov byte [eax + 0x70], 0
mov dword [eax + 0x74], 0
lea ecx, [eax + 0x68]
lea edx, [0x501b20]
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp], eax
mov ebx, dword [esp + 0x84]
mov dword [esp + 4], ebx
call fcn.004adc30
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xc], ecx
call fcn.004addd0
movzx eax, byte [esp + 0x10]
test al, al
je 0x4af90f
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x8c]
lea ebx, [ecx + edx]
mov dword [esp + 0x48], ebx
mov ebp, dword [eax + 0x48]
mov esi, dword [esp + 0x90]
cmp ebx, esi
ja 0x4af8c9
mov edi, dword [esp + 0x58]
mov dword [esp + 0x58], edi
mov dword [esp + 0x90], esi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.00454440
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004b1950
mov eax, dword [esp + 0x58]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x9c], eax
add esp, 0x5c
ret
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], ebp
lea eax, [0x4c99c0]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.0043e480
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x54]
jmp 0x4af86c
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004b1950
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x5c
ret
lea edi, [eax + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.00453b50
mov eax, ecx
jmp 0x4af7de
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x4af99f
nop
mov edx, dword [esp + 0x70]
mov dword [eax + 0x58], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 0x5c], edx
mov edx, dword [0x5ab4f0]
test edx, edx
jne 0x4af98f
mov dword [eax + 0x54], ecx
lea ecx, [eax + 0x54]
lea edx, [0x501ae0]
jmp 0x4af7f2
lea edi, [eax + 0x54]
mov edx, eax
mov eax, ecx
call fcn.00453b50
mov eax, edx
jmp 0x4af981
nop
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0x64], ecx
mov ecx, dword [0x5ab4f0]
test ecx, ecx
jne 0x4af9c6
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x60], ecx
lea ecx, [eax + 0x60]
lea edx, [0x501b60]
jmp 0x4af7f2
lea edi, [eax + 0x60]
mov ecx, eax
mov eax, dword [esp + 0x78]
call fcn.00453b50
mov eax, ecx
jmp 0x4af9b8
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
lea ebx, [edi + esi]
cmp dword [ebp + 0x14], ebx
jle 0x4af7ab
mov dword [esp], ebp
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov ebx, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
call fcn.004ad830
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x5c
ret
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
call fcn.004aee30
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
add esp, 0x5c
ret
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
lea edi, [esi + ebp]
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x4c], edi
jg 0x4afafe
mov ecx, dword [esp + 0x90]
jmp 0x4af789
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x5c
ret
xor ecx, ecx
xor edx, edx
lea eax, [0x5ab340]
jmp 0x4af776
call fcn.00452310
jmp fcn.004af740