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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4aff62
sub esp, 0x5c
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4aff53
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x90], ecx
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x4aff0e
mov ebp, dword [esp + 0x60]
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4afe8b
mov dword [esp + 0x8c], edx
mov dword [esp + 0x58], eax
test ebx, ebx
je 0x4afe08
mov dword [esp], ebp
call fcn.004b1a10
mov eax, dword [esp + 4]
test byte [eax], al
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x4afd8d
nop
mov dword [eax + 0x68], ecx
mov ecx, dword [0x5af4d0]
test ecx, ecx
jne 0x4afd78
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, [0x504000]
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.004ae060
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.004ae200
movzx eax, byte [esp + 0x10]
test al, al
je 0x4afd3f
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 0x4afcf9
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.004b1d80
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, [0x4cba20]
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 0x4afc9c
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004b1d80
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 0x4afc0e
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x4afdcf
nop
mov edx, dword [esp + 0x70]
mov dword [eax + 0x58], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 0x5c], edx
mov edx, dword [0x5af4d0]
test edx, edx
jne 0x4afdbf
mov dword [eax + 0x54], ecx
lea ecx, [eax + 0x54]
lea edx, [0x503fc0]
jmp 0x4afc22
lea edi, [eax + 0x54]
mov edx, eax
mov eax, ecx
call fcn.00453b50
mov eax, edx
jmp 0x4afdb1
nop
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0x64], ecx
mov ecx, dword [0x5af4d0]
test ecx, ecx
jne 0x4afdf6
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x60], ecx
lea ecx, [eax + 0x60]
lea edx, [0x504040]
jmp 0x4afc22
lea edi, [eax + 0x60]
mov ecx, eax
mov eax, dword [esp + 0x78]
call fcn.00453b50
mov eax, ecx
jmp 0x4afde8
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
lea ebx, [edi + esi]
cmp dword [ebp + 0x14], ebx
jle 0x4afbdb
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.004adc60
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.004af260
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 0x4aff2e
mov ecx, dword [esp + 0x90]
jmp 0x4afbb9
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, [0x5af320]
jmp 0x4afba6
call fcn.00452310
jmp fcn.004afb70