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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f69d6
sub esp, 0x68
mov eax, 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [esp + 0x74]
movzx esi, byte [ebp]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4f69cd
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4f67cc
mov edx, dword [ecx + 8]
test edx, edx
jne 0x4f67f4
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 0
call fcn.004f4b00
mov eax, dword [esp + 0xc]
mov dword [esp + 0x7c], eax
add esp, 0x68
ret
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea edx, [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004f7f80
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x40], ebp
mov esi, dword [ebx + 8]
mov dword [esp + 0x3c], esi
mov ebx, dword [ebx + 4]
mov edi, dword [esp + 0x78]
test edi, edi
je 0x4f69c2
mov ebp, dword [edi + 8]
mov esi, dword [edi + 4]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
mov edi, dword [esp + 0x6c]
mov ebp, dword [edi + 0xc]
mov esi, dword [edi + 8]
mov edi, dword [edi + 4]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x28], edx
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x2c], ebp
call fcn.00501140
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x6c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [0xbc7270]
lea edi, [ebx + 4]
test edx, edx
jne 0x4f69b8
mov dword [ebx + 4], eax
test ecx, ecx
jle 0x4f69b1
mov eax, dword [esp + 0x70]
movzx eax, byte [eax]
test al, al
je 0x4f69aa
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4f69a3
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
and eax, 1
cmp eax, 1
sete al
mov byte [ebx], al
test al, al
je 0x4f692b
mov eax, dword [esp + 0x44]
test eax, eax
jg 0x4f6933
mov dword [esp + 0x7c], ebx
add esp, 0x68
ret
mov dword [esp + 0x50], edi
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
call fcn.004fc110
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x6c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x4f6998
mov dword [ebx + 4], eax
mov byte [ebx], 0
jmp 0x4f692b
mov edi, dword [esp + 0x50]
call fcn.0044cc20
jmp 0x4f6993
xor eax, eax
jmp 0x4f691d
xor eax, eax
jmp 0x4f691d
xor eax, eax
jmp 0x4f691d
call fcn.0044cc20
jmp 0x4f68eb
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x4f685c
mov eax, edx
mov edx, ebx
jmp 0x4f6832
call fcn.0044b4c0
jmp fcn.004f6770