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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f82af
sub esp, 0x7c
mov eax, 0
lea edi, [esp + 0x4c]
call fcn.0044cd18
mov eax, dword [esp + 0x88]
movzx ecx, byte [eax]
test cl, cl
je 0x4f805f
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x4c]
cmp eax, ecx
je 0x4f8043
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
test ecx, ecx
jg 0x4f826e
mov ebx, ecx
xor ebp, ebp
xor esi, esi
cmp ecx, ebx
jle 0x4f8267
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], esi
cmp esi, edx
je 0x4f801d
mov dword [esp], esi
mov dword [esp + 4], edx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0044d420
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
movzx eax, byte [eax]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x4f8260
movzx eax, byte [esp + 0x4c]
xor eax, 1
mov byte [esp + 0x4c], al
lea eax, [esp + 0x4c]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x84]
movzx edx, byte [ecx]
test dl, dl
jne 0x4f821f
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea edx, [esp + 0x6c]
mov dword [esp], edx
lea ebx, [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004f69e0
lea eax, [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [0xbadd9c]
mov dword [esp + 4], eax
call fcn.004f61a0
mov eax, dword [esp + 8]
test eax, eax
jne 0x4f8210
movzx ecx, byte [esp + 0x3c]
test cl, cl
jne 0x4f81e2
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x3c]
cmp ecx, edx
je 0x4f81de
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 0xc]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp ebp, ebx
jg 0x4f819d
mov eax, ebp
cmp ebp, eax
jle 0x4f8199
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
cmp edx, esi
je 0x4f8153
mov dword [esp], edx
mov dword [esp + 4], esi
shl eax, 2
mov dword [esp + 8], eax
call fcn.0044d420
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x80]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 0xc], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x4f818b
mov eax, dword [esp + 0x38]
mov dword [edx + 4], eax
movzx eax, byte [esp + 0x3c]
mov byte [edx], al
mov dword [esp + 0x8c], edx
add esp, 0x7c
ret
lea edi, [edx + 4]
mov eax, dword [esp + 0x38]
call fcn.0044cc20
jmp 0x4f8179
mov eax, ebp
jmp 0x4f8130
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
lea eax, [0x7715e0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [ebp + 4]
mov dword [esp + 8], eax
call fcn.00438c00
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x30]
jmp 0x4f812c
mov edx, ecx
jmp 0x4f8180
mov eax, dword [esp + 0x80]
mov dword [esp], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 8], ecx
call fcn.004f5070
mov edx, dword [esp + 0x80]
jmp 0x4f8180
mov dword [esp + 0x8c], 0
add esp, 0x7c
ret
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea edx, [esp + 0x5c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004f5d90
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x88]
jmp 0x4f8078
xor eax, eax
jmp 0x4f8057
mov ebx, ecx
jmp 0x4f7ffa
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
lea eax, [0x7715e0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [ecx + 4]
mov dword [esp + 8], edx
call fcn.00438c00
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
jmp 0x4f7ff2
call fcn.0044b4c0
jmp fcn.004f7f80