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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4fa22e
sub esp, 0x60
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x98]
cmp ebx, ecx
jne 0x4fa215
mov ebp, dword [esp + 0x80]
cmp ebp, ecx
jne 0x4fa215
mov esi, dword [esp + 0x8c]
cmp esi, ecx
jne 0x4fa215
mov eax, ecx
shl ecx, 1
mov edx, dword [esp + 0x6c]
cmp edx, ecx
jl 0x4f9e85
jb 0x4fa210
mov edi, dword [esp + 0x64]
jmp 0x4f9f1b
cmp ecx, 1
jne 0x4f9ed3
lea eax, [0x5ff3c0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00449ec0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x8c]
mov edx, 1
mov ecx, 1
mov edi, eax
mov eax, dword [esp + 0x98]
jmp 0x4f9f1b
mov dword [esp + 0x34], ecx
lea eax, [0x5ff3c0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.00449ec0
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x8c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x58], edi
nop
test ecx, ecx
je 0x4f9f60
mov dword [esp], edi
shl ecx, 2
mov dword [esp + 4], ecx
call fcn.00462cc0
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
jmp 0x4f9fb6
mov ecx, dword [esp + 0x38]
inc ecx
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
cmp eax, esi
jle 0x4fa0e4
cmp ebp, esi
jbe 0x4fa207
mov ebp, dword [esp + 0x7c]
mov ebp, dword [ebp + esi*4]
mov dword [esp + 0x3c], ebp
lea ebp, [esi + eax]
cmp edx, ebp
jb 0x4fa200
cmp esi, ebp
ja 0x4fa1f7
mov dword [esp + 0x4c], ebp
mov ecx, esi
shl esi, 2
sub edx, ecx
mov dword [esp + 0x48], edx
neg edx
sar edx, 0x1f
and esi, edx
lea edx, [edi + esi]
mov dword [esp + 0x5c], edx
mov dword [esp], edx
mov dword [esp + 4], eax
mov esi, dword [esp + 0x48]
mov dword [esp + 8], esi
mov ebp, dword [esp + 0x70]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x18], ebx
call fcn.00504260
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jae 0x4fa1ee
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov edx, dword [eax + ecx*4]
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x94]
imul edx, edi
mov dword [esp + 0x18], edx
call fcn.00504260
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add edx, ecx
lea ebx, [edx + eax]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
cmp ebp, esi
jbe 0x4fa1e5
mov edi, dword [esp + 0x58]
mov dword [edi + esi*4], ebx
cmp ecx, edx
ja 0x4fa0d3
cmp eax, ebx
jbe 0x4fa0dd
mov eax, 1
jmp 0x4f9f76
xor eax, eax
jmp 0x4f9f76
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x4fa15e
cmp eax, edx
ja 0x4fa1de
cmp eax, ecx
ja 0x4fa1d9
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
sub edx, eax
mov ebp, edx
neg edx
mov esi, eax
shl eax, 2
sar edx, 0x1f
and eax, edx
add eax, edi
mov dword [esp + 0xc], eax
sub ecx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x20], eax
call fcn.005040e0
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x98]
mov edi, dword [esp + 0x58]
jmp 0x4fa1a7
cmp eax, edx
ja 0x4fa1d2
cmp eax, ecx
ja 0x4fa1cd
mov ebx, edx
sub edx, eax
neg edx
mov ebp, eax
shl eax, 2
sar edx, 0x1f
and eax, edx
sub ecx, ebp
lea esi, [edi + eax]
cmp ebp, ecx
jg 0x4fa181
mov ecx, ebp
test eax, eax
je 0x4fa1a7
mov dword [esp], edi
mov dword [esp + 4], esi
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.00462e90
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x98]
mov edi, dword [esp + 0x58]
cmp ebp, ebx
ja 0x4fa1c4
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], ebx
add esp, 0x60
ret
mov ecx, ebp
mov edx, ebx
call fcn.004625c0
call fcn.004625e0
mov ecx, eax
call fcn.004625c0
call fcn.004625e0
mov ecx, eax
call fcn.004625c0
mov eax, esi
mov ecx, ebp
call fcn.00462580
mov eax, ecx
mov ecx, edx
call fcn.00462580
mov eax, esi
mov ecx, ebp
call fcn.004625e0
mov ecx, ebp
call fcn.004625c0
mov eax, esi
mov ecx, ebp
call fcn.00462580
call fcn.004625c0
lea eax, [0x5ff840]
mov dword [esp], eax
lea eax, [0x68b7ac]
mov dword [esp + 4], eax
call fcn.004351d0
nop
call fcn.004610f0
jmp fcn.004f9e20