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

Disassembly:
mov ecx, dword [0x5efcb0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f5639
sub esp, 0x6c
mov word [esp + 0x14], 0
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], edx
jmp 0x4f5444
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x34], edx
jg 0x4f5453
jmp 0x4f5550
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x50]
lea edx, [ebx + edx*4]
mov edx, dword [edx]
mov dword [esp + 0x28], edx
movzx edx, word [esp + 0x14]
shl edx, 1
mov word [esp + 0x14], dx
mov edx, dword [esp + 0x24]
test edx, edx
sete dl
mov byte [esp + 0x13], dl
je 0x4f5489
jmp 0x4f548b
jmp 0x4f549a
mov edx, dword [esp + 0x28]
test edx, edx
sete dl
mov byte [esp + 0x13], dl
jmp 0x4f549a
movzx edx, byte [esp + 0x13]
test dl, dl
jne 0x4f54a5
jmp 0x4f54aa
jmp 0x4f561c
mov eax, dword [esp + 0x84]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x80]
jmp 0x4f54d6
cmp ecx, eax
jae 0x4f54df
jmp 0x4f5633
sub edx, eax
sub ecx, eax
mov ebp, edx
neg edx
shl eax, 3
sar edx, 0x1f
and eax, edx
add eax, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x70]
test byte [eax], al
add eax, 0x5c
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004f59b0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
jmp 0x4f5554
add esp, 0x6c
ret
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x2c], ebx
jg 0x4f5563
jmp 0x4f55ef
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x60]
lea eax, [ecx + eax*8]
movzx ecx, word [eax]
mov eax, dword [eax + 4]
mov word [esp + 0x1c], cx
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov word [esp], ax
mov byte [esp + 2], cl
call fcn.004f5e00
movzx eax, word [esp + 4]
mov word [esp + 0x1a], ax
mov word [esp + 0x16], 0
mov word [esp + 0x18], 0
mov word [esp + 0x16], ax
mov ecx, dword [esp + 0x24]
mov word [esp + 0x18], cx
mov edx, dword [esp + 0x70]
test byte [edx], al
mov ebx, dword [edx + 4]
mov edx, dword [edx]
movzx ebp, word [esp + 0x1c]
cmp ebx, ebp
ja 0x4f55cf
jmp 0x4f562a
lea ebx, [edx + ebp*4]
mov word [ebx], ax
mov word [ebx + 2], cx
movzx eax, word [esp + 0x14]
inc eax
mov word [esp + 0x14], ax
jmp 0x4f55e6
inc dword [esp + 0x30]
jmp 0x4f5554
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x3c], ecx
mov ebx, dword [esp + 0x28]
sub ecx, ebx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x88]
cmp edx, ecx
jae 0x4f5611
jmp 0x4f5625
jmp 0x4f5613
mov dword [esp + 0x84], ecx
jmp 0x4f561c
inc dword [esp + 0x38]
jmp 0x4f5444
call fcn.00475870
mov eax, ebp
mov ecx, ebx
call fcn.00475830
call fcn.00475890
nop
call fcn.004743b0
jmp fcn.004f5400