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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f313c
sub esp, 0x50
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x4f2f88
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x58]
cmp ebx, ebp
jne 0x4f2ea1
test ebp, ebp
je 0x4f2e97
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x60]
cmp esi, edi
jne 0x4f2ea9
mov eax, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
add esp, 0x50
ret
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x60]
jmp 0x4f2ea9
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x4f2ecd
mov ebp, dword [esp + 0x68]
test ebp, ebp
je 0x4f2ecd
lea ecx, [esi + edx*4 - 4]
lea edi, [edi + ebp*4 - 4]
cmp edi, ecx
je 0x4f2f98
mov edi, dword [esp + 0x60]
cmp ebx, edx
jg 0x4f2ed5
mov eax, ebx
jmp 0x4f2f43
cmp ebx, 1
jne 0x4f2f12
lea eax, [0x6f5360]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044e560
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x60]
mov ebx, 1
mov esi, eax
mov edx, 1
mov eax, dword [esp + 0x64]
jmp 0x4f2f43
lea eax, [0x6f5360]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.0044e560
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov esi, eax
mov edx, dword [esp + 0x28]
mov eax, ebx
cmp eax, ebx
jl 0x4f2f49
mov eax, ebx
cmp edi, esi
je 0x4f2f78
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4c], esi
mov dword [esp], esi
mov dword [esp + 4], edi
shl eax, 2
mov dword [esp + 8], eax
call fcn.004697f0
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edx
add esp, 0x50
ret
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x54]
test ebx, ebx
je 0x4f30e3
mov edi, eax
shr edi, 5
mov dword [esp + 0x44], edi
lea ecx, [edi + ebx + 1]
lea eax, [edi + ebx]
mov dword [esp + 0x38], eax
cmp edx, ecx
jl 0x4f2fc3
jae 0x4f3047
jmp 0x4f3136
test eax, eax
jne 0x4f3007
lea eax, [0x6f5360]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044e560
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x44]
mov edx, 1
mov esi, eax
mov ecx, 1
mov eax, dword [esp + 0x38]
jmp 0x4f3047
mov dword [esp + 0x34], ecx
lea eax, [0x6f5360]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [edi + ebx + 5]
mov dword [esp + 0x24], eax
mov dword [esp + 8], eax
call fcn.0044e560
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov esi, eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp edx, eax
jb 0x4f312f
cmp edi, eax
ja 0x4f3126
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], esi
sub edx, edi
mov dword [esp + 0x40], edx
shl edi, 2
mov dword [esp + 0x3c], edi
neg edx
sar edx, 0x1f
and edx, edi
add edx, esi
mov dword [esp], edx
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x6c]
and edx, 0x1f
mov dword [esp + 0x18], edx
call fcn.004fc8d0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jbe 0x4f3121
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x48]
mov dword [ebp + eax*4], ebx
nop
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4f30e1
mov dword [esp], ebp
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.00469620
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x48]
jmp 0x4f30f8
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], edx
add esp, 0x50
ret
dec ecx
test ecx, ecx
jle 0x4f3104
mov eax, dword [ebp + ecx*4 - 4]
test eax, eax
je 0x4f30f7
mov edx, dword [esp + 0x24]
cmp ecx, edx
ja 0x4f311c
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x50
ret
call fcn.00468f10
call fcn.00468ed0
mov ecx, eax
mov eax, edi
call fcn.00468f30
mov ecx, eax
call fcn.00468f10
call fcn.00468f10
nop
call fcn.00467a60
jmp fcn.004f2e40