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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4af791
sub esp, 0x68
call fcn.0045a760
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov ebx, dword [esp + 4]
test ecx, ecx
jle 0x4af76d
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x64], edx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor ebp, ebp
jmp 0x4af716
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov edx, ebx
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov esi, eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
cmp ebx, esi
jge 0x4af5ed
mov dword [esp + 0x38], esi
sub esi, ebx
mov dword [esp + 0x40], esi
shr esi, 0x1f
mov ebp, dword [esp + 0x40]
add ebp, esi
sar ebp, 1
lea esi, [ebp + ebx]
mov ebx, dword [esp + 0x30]
cmp esi, ebx
jae 0x4af77e
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov eax, dword [edi + esi*4]
nop
add eax, edx
mov dword [esp], eax
call fcn.004ab160
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
call fcn.004027f0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4af5d8
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
jmp 0x4af534
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
lea ecx, [ebx + edx + 1]
mov eax, dword [esp + 0x38]
jmp 0x4af534
mov esi, dword [esp + 0x30]
jmp 0x4af61e
mov ecx, dword [esp + 0x34]
inc ecx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
mov ecx, dword [esp + 0x28]
cmp ebx, esi
jge 0x4af6e2
jae 0x4af775
mov dword [esp + 0x34], ebx
mov eax, dword [edi + ebx*4]
nop
add eax, edx
mov dword [esp + 0x50], eax
mov dword [esp], eax
call fcn.004ab160
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 8], ecx
jne 0x4af6e2
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.004028f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x4af6e2
mov edx, dword [esp + 0x20]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
ja 0x4af6ab
mov eax, dword [esp + 0x54]
mov esi, dword [0x71e9f0]
lea edi, [eax + edx*4]
test esi, esi
jne 0x4af699
mov esi, dword [esp + 0x50]
mov dword [eax + edx*4], esi
jmp 0x4af5f3
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0045e220
mov eax, ecx
jmp 0x4af5f3
lea eax, [0x5cbf40]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00445360
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [ecx + 1]
mov edx, dword [esp + 0x20]
jmp 0x4af680
mov edx, dword [esp + 0x2c]
inc edx
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jle 0x4af751
mov eax, dword [esp + 0x60]
add eax, 0xc
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov ebx, dword [esp + 0x44]
mov ebp, edx
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov esi, dword [eax + 4]
mov edi, dword [eax]
cmp ebp, ebx
jae 0x4af787
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x5c], edi
mov edx, dword [edx + ebp*4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
jmp 0x4af558
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x68
ret
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x4af75d
mov eax, ebx
mov ecx, esi
call fcn.0045e2a0
mov eax, esi
mov ecx, ebx
call fcn.0045e2a0
mov eax, ebp
mov ecx, ebx
call fcn.0045e2a0
nop
call fcn.0045ccc0
jmp fcn.004af4e0