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

Disassembly:
sub esp, 0x64
push ebx
mov eax, ecx
mov dword [esp + 0x18], 0
push ebp
mov dword [esp + 0x18], eax
push esi
mov ebp, dword [eax + 8]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
push edi
movzx eax, byte [ebp + 0x10]
mov dword [esp + 0x54], ebx
mov edi, dword [ecx]
mov dword [esp + 0x50], edi
lea edx, [eax + eax*8]
mov dword [esp + 0x64], ebp
mov eax, dword [ecx + 4]
lea eax, [eax + edx*8]
lea edx, [esp + 0x1c]
add eax, 8
push edx
push eax
push dword [esp + 0x8c]
mov edx, ebx
push dword [esp + 0x8c]
call fcn.004f2a50
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x4f56c7
and dword [ebp + 0x1c], 0xfffffffe
xor eax, eax
mov word [ebp + 0x12], ax
mov word [ebp + 0x30], ax
movzx eax, word [ebp + 0x34]
mov dword [ebp + 0x2c], 0x400
mov ecx, dword [ebx]
mov dword [esp + 0x2c], ecx
cmp eax, ecx
jge 0x4f5704
mov ebx, dword [edi]
lea esi, [ecx + 7]
and esi, 0xfffffff8
mov ecx, ebx
push 0
lea eax, [esi*4]
push eax
call fcn.004600a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4f56d4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x28]
mov ecx, dword [ecx]
call fcn.004f2ed0
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
movzx eax, word [ebp + 0x34]
shl eax, 2
push eax
push dword [ebp + 0x38]
push edi
call fcn.00533a40
mov edx, dword [ebp + 0x38]
lea eax, [ebp + 0x40]
add esp, 0xc
cmp edx, eax
je 0x4f56f9
mov ecx, ebx
call fcn.0045fcb0
mov ebx, dword [esp + 0x28]
mov dword [ebp + 0x38], edi
mov word [ebp + 0x34], si
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor edx, edx
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push dword [esp + 0x94]
call fcn.004f4d80
add esp, 0x20
mov edi, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x14], edi
je 0x4f576a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 0
push eax
push dword [esp + 0x24]
xor edx, edx
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push dword [esp + 0x94]
call fcn.004f4d80
add esp, 0x20
mov dword [esp + 0x14], eax
mov edi, eax
test edi, edi
jne 0x4f59bf
mov ecx, dword [esp + 0x78]
mov edx, esi
mov eax, ecx
not edx
not eax
mov dword [esp + 0x34], edx
and edx, dword [ebp + 4]
mov dword [esp + 0x30], eax
and eax, dword [ebp]
mov dword [esp + 0x68], eax
or eax, edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], edx
jne 0x4f57a4
test eax, eax
je 0x4f59bf
xor edx, edx
xorps xmm0, xmm0
mov dword [esp + 0x24], edx
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x58], xmm0
lea edi, [edx + 1]
test eax, eax
je 0x4f5818
push edx
lea eax, [esp + 0x14]
mov edx, edi
push eax
push dword [esp + 0x24]
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
mov ecx, dword [esp + 0x40]
call fcn.004f4d80
mov esi, dword [esp + 0x50]
mov edi, eax
and esi, dword [ebp]
add esp, 0x20
mov ecx, dword [esp + 0x34]
mov eax, esi
and ecx, dword [ebp + 4]
or eax, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
jne 0x4f580c
mov edx, 1
mov dword [esp + 0x24], edx
jmp 0x4f580e
xor edx, edx
test edi, edi
jne 0x4f59bf
jmp 0x4f5828
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov ecx, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
nop
or esi, 0xffffffff
or edi, 0xffffffff
cmp dword [esp + 0x2c], 0
jle 0x4f58ab
mov eax, dword [esp + 0x54]
mov edx, dword [ebx + 4]
mov ebx, dword [esp + 0x2c]
add edx, 8
mov eax, dword [eax + 0x18]
mov ebp, eax
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
lea eax, [eax + eax*2]
add eax, eax
and ecx, dword [ebp + eax*8 + 0x20]
mov eax, dword [ebp + eax*8 + 0x24]
and eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x44]
jb 0x4f5893
ja 0x4f5885
cmp ecx, dword [esp + 0x38]
jbe 0x4f5893
cmp eax, edi
ja 0x4f5893
jb 0x4f588f
cmp ecx, esi
jae 0x4f5893
mov esi, ecx
mov edi, eax
add edx, 0xc
sub ebx, 1
jne 0x4f5860
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, esi
mov dword [esp + 0x38], esi
and eax, edi
mov dword [esp + 0x44], edi
cmp eax, 0xffffffff
je 0x4f5951
cmp esi, dword [esp + 0x68]
jne 0x4f58cc
cmp edi, dword [esp + 0x6c]
je 0x4f5943
cmp esi, dword [esp + 0x48]
jne 0x4f58d8
cmp edi, dword [esp + 0x4c]
je 0x4f5943
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x10]
push 0
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x88]
or esi, ecx
push ebx
or edi, eax
xor edx, edx
push edi
push esi
push eax
push ecx
mov ecx, dword [esp + 0x40]
call fcn.004f4d80
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x98]
add esp, 0x20
mov dword [esp + 0x14], edi
cmp dword [ebp], eax
jne 0x4f593d
mov esi, dword [esp + 0x7c]
cmp dword [ebp + 4], esi
jne 0x4f593d
cmp dword [esp + 0x10], 0
mov edx, 1
mov eax, edx
mov dword [esp + 0x24], edx
cmove ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x4f5947
mov edx, dword [esp + 0x24]
jmp 0x4f5947
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4f5840
jmp 0x4f59bf
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4f59bf
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
test edx, edx
jne 0x4f5999
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
push dword [esp + 0x24]
push ebx
push ebp
push esi
push ebp
push esi
call fcn.004f4d80
mov ecx, dword [esp + 0x38]
add esp, 0x20
cmp dword [esp + 0x10], 0
mov edx, 1
mov edi, eax
cmove ecx, edx
test edi, edi
jne 0x4f59bf
jmp 0x4f599e
mov edx, 1
test ecx, ecx
jne 0x4f59bf
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
push ebx
push ebp
push esi
push ebp
push esi
call fcn.004f4d80
add esp, 0x20
mov edi, eax
cmp dword [ebx + 0x1c], 0
je 0x4f5a24
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x4f5a24
cmp dword [0x59ebc0], 0
je 0x4f5a1a
mov eax, dword [0x5abfe0]
test eax, eax
je 0x4f59e8
push eax
call dword [0x59ec10]
add esp, 4
push esi
call dword [0x59ebec]
sub dword [0x5abdf8], eax
add esp, 4
dec dword [0x5abe1c]
push esi
call dword [0x59ebe4]
mov eax, dword [0x5abfe0]
add esp, 4
test eax, eax
je 0x4f5a24
push eax
call dword [0x59ec18]
jmp 0x4f5a21
push esi
call dword [0x59ebe4]
add esp, 4
mov ecx, dword [esp + 0x50]
mov edx, ebx
mov ecx, dword [ecx]
call fcn.004f2ed0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret