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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x4f586b
sub esp, 0x84
mov eax, dword [esp + 0xa4]
lea ecx, [eax + 1]
mov dword [esp], ecx
call fcn.004f0420
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xa4]
sub ecx, edx
mov ebp, dword [eax + 4]
mov dword [esp + 0x44], ebp
mov esi, dword [eax + 8]
mov edi, dword [eax]
lea ebp, [edx - 1]
cmp edx, ebp
jbe 0x4f5861
mov dword [esp + 0x50], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x7c], edi
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + edx*4 - 4]
mov dword [esp + 0x2c], ecx
mov dword [esp], ecx
call fcn.004ec760
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa0]
jmp 0x4f5410
dec eax
mov ebp, dword [esp + 0x3c]
mov ebp, ecx
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xa0]
mov ecx, eax
mov eax, dword [esp + 0x3c]
test ecx, ecx
jl 0x4f571f
lea esi, [ebp + ecx]
mov dword [esp + 0x64], esi
cmp ebx, esi
jle 0x4f5437
jbe 0x4f5858
mov esi, dword [edx + esi*4]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x64]
jmp 0x4f5445
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], ecx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
cmp esi, edi
je 0x4f54f2
lea ebp, [ecx + ebp - 1]
cmp ebx, ebp
jbe 0x4f584f
mov ecx, dword [edx + ebp*4]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
call fcn.004ec610
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xa4]
lea ebx, [edx - 2]
cmp edx, ebx
jbe 0x4f5846
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xa0]
mov ebx, dword [ecx + edx*4 - 8]
mov dword [esp + 0x28], ebx
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004f6ce0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x54]
lea ebp, [ebx + edx - 2]
mov esi, dword [esp + 0x98]
cmp esi, ebp
jbe 0x4f583d
mov edi, dword [esp + 0x94]
mov ebp, dword [edi + ebp*4]
mov dword [esp + 0x30], ebp
jmp 0x4f57eb
mov esi, 0xffffffff
mov eax, dword [esp + 0x48]
cmp ebp, eax
ja 0x4f5785
mov dword [esp + 0x4c], esi
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
call fcn.004f6e80
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x44]
cmp ecx, edx
jae 0x4f577c
mov ebx, dword [esp + 0x7c]
mov dword [ebx + ecx*4], eax
mov ebp, dword [esp + 0x54]
lea esi, [edx + ebp]
mov edi, dword [esp + 0x98]
cmp edi, esi
jge 0x4f557e
test eax, eax
jne 0x4f557e
lea esi, [edx - 1]
mov eax, edx
mov edx, esi
jmp 0x4f5580
mov eax, edx
lea esi, [edx + ebp]
mov ebx, dword [esp + 0x9c]
cmp ebx, esi
jb 0x4f5773
cmp ebp, esi
ja 0x4f576a
sub ebx, ebp
mov dword [esp + 0x60], ebx
neg ebx
shl ebp, 2
sar ebx, 0x1f
and ebx, ebp
mov ebp, dword [esp + 0x94]
add ebx, ebp
mov esi, dword [esp + 0x54]
cmp edi, esi
jb 0x4f5761
mov dword [esp + 0x40], edx
mov dword [esp + 0x80], ebx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
sub edi, esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
call fcn.004f6d40
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4f562a
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
mov ebp, dword [esp + 0x4c]
jmp 0x4f56da
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x64]
cmp edx, ecx
jb 0x4f575c
mov eax, dword [esp + 0x54]
cmp eax, ecx
ja 0x4f5757
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0xa4]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x20], edx
call fcn.004f6d00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x40]
cmp ecx, edx
jge 0x4f56c7
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x64]
cmp ebx, ebp
jbe 0x4f574e
mov esi, dword [esp + 0x94]
add dword [esi + ebp*4], eax
jmp 0x4f56d5
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
mov ebp, dword [esp + 0x4c]
dec ebp
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
cmp eax, edi
jne 0x4f5703
mov edx, esi
mov esi, dword [esp + 0x8c]
cmp esi, edi
jne 0x4f570c
test ebp, ebp
jne 0x4f570c
mov esi, dword [esp + 0x88]
jmp 0x4f53f5
mov edx, esi
mov esi, dword [esp + 0x8c]
cmp esi, eax
jbe 0x4f5747
mov esi, dword [esp + 0x88]
mov dword [esi + eax*4], ebp
jmp 0x4f53f5
nop
lea eax, [0x664090]
mov dword [esp], eax
lea eax, [0x54bfa0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call fcn.00462b30
add esp, 0x84
ret
mov ecx, esi
call fcn.0045ca00
mov eax, ebp
mov ecx, ebx
call fcn.0045ca00
call fcn.0045ca60
call fcn.0045ca40
mov eax, esi
mov ecx, edi
call fcn.0045ca60
mov eax, ebp
mov ecx, esi
call fcn.0045ca60
mov ecx, esi
mov edx, ebx
call fcn.0045ca40
mov eax, ecx
mov ecx, edx
call fcn.0045ca00
mov ecx, ebp
mov edx, eax
call fcn.0045ca40
mov dword [esp + 0x58], eax
mov dword [esp + 0x38], ebx
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
call fcn.004f6ce0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x38]
cmp edi, eax
jb 0x4f57f9
jne 0x4f580d
cmp ecx, ebp
jbe 0x4f580d
mov eax, dword [esp + 0x4c]
dec eax
mov ecx, esi
mov esi, dword [esp + 0x2c]
lea ebx, [edi + esi]
cmp edi, ebx
jbe 0x4f578e
jmp 0x4f5817
mov ecx, esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0xa4]
mov edi, esi
mov esi, eax
mov eax, dword [esp + 0x3c]
jmp 0x4f54f7
mov eax, ebp
mov ecx, esi
call fcn.0045ca00
mov eax, ebx
mov ecx, edx
call fcn.0045ca00
mov eax, ebp
mov ecx, ebx
call fcn.0045ca00
mov eax, esi
mov ecx, ebx
call fcn.0045ca00
mov eax, ebp
mov ecx, edx
call fcn.0045ca00
nop
call fcn.0045b540
jmp fcn.004f5340