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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 0x66e8]
push eax
call fcn.005d9733
mov ecx, dword [esi + 0x6790]
lea ebx, [esi + 0x6790]
add esp, 4
mov byte [esi + 0x67d5], 0
mov edi, dword [ecx]
cmp ecx, ebx
je 0x5f99b4
mov edx, edi
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
push ecx
mov dword [eax], edx
call fcn.005d8163
mov edx, dword [edi]
mov ecx, edi
add esp, 4
mov edi, edx
cmp ecx, ebx
jne 0x5f9999
cmp byte [ebp + 0x14], 0
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x67a8], ebx
mov dword [esi + 0x67ac], edi
mov dword [esi + 0x67b0], 0
mov dword [esi + 0x67b4], 0
mov dword [esi + 0x5c], 0
je 0x5f9a21
mov ecx, dword [esi + 0x70]
cmp ecx, dword [esi + 0x78]
ja 0x5f9a21
nop dword [eax]
xor edx, edx
mov eax, ecx
div dword [esi + 0x50]
imul edx, edx, 0x70
add edx, dword [esi + 8]
mov al, byte [edx + 0x1c]
and al, 0x3f
cmp al, 4
jne 0x5f9a14
cmp dword [edx + 0x18], ecx
jne 0x5f9a14
inc ecx
cmp ecx, dword [esi + 0x78]
jbe 0x5f99f3
cmp dword [esi + 0x70], ecx
je 0x5f9a21
mov eax, dword [esi]
mov dword [esi + 0x70], ecx
mov dword [eax + 0x10], ecx
mov eax, dword [esi + 0x50]
dec eax
add eax, dword [esi + 0x6c]
cmp byte [esi + 0x67d6], 1
jne 0x5f9a36
mov ecx, dword [esi + 0x4c]
jmp 0x5f9a39
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x70]
dec edx
add edx, ecx
mov ecx, dword [esi + 0x80]
cmp edx, eax
cmova edx, eax
mov eax, ecx
cmp edx, ecx
cmovbe eax, edx
inc ecx
mov dword [esi + 0x74], eax
cmp edx, ecx
mov eax, dword [esi]
cmovbe ecx, edx
mov dword [eax + 0x14], ecx
cmp byte [esi + 0x67d6], 3
mov eax, dword [esi]
jne 0x5f9ac6
push 0x19
push eax
call fcn.005e1cb3
mov eax, dword [esi + 0x70]
push dword [esi]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], edi
call fcn.005ff5f3
push eax
push edi
push ebx
push esi
call fcn.005ff0e3
add esp, 0x1c
mov byte [esi + 0x67d7], 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x32
push eax
mov dword [esi + 0x68], 0x32
call fcn.005e1cb3
mov ebx, dword [esi + 0x128]
add esp, 8
mov edi, dword [esi + 0xb0]
and ebx, 0xfffffc00
cmp byte [ebp + 0x14], 0
mov dword [ebp - 8], ebx
jne 0x5f9b80
mov ecx, dword [esi + 0x38]
xor edi, edi
mov edx, dword [esi + 0x3c]
mov eax, ecx
or eax, edx
je 0x5f9b80
mov eax, dword [ebp + 0xc]
sub eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
sbb ecx, edx
mov dword [ebp + 0x14], ecx
test ecx, ecx
jg 0x5f9b2a
jl 0x5f9b20
cmp eax, 0x32
jae 0x5f9b2a
mov dword [ebp + 8], 0x32
mov dword [ebp + 0x14], edi
mov ebx, dword [esi + 0x30]
sub ebx, dword [esi + 0x28]
mov edi, dword [esi + 0x34]
sbb edi, dword [esi + 0x2c]
push 0
push 0x1f40
push edi
push ebx
call 0x6ec143
push dword [ebp + 0x14]
push dword [ebp + 8]
push edx
push eax
call 0x6ecbb3
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push edi
push ebx
push dword [esi + 0x2c]
mov edi, eax
mov eax, dword [esi]
push dword [esi + 0x28]
push dword [esi + 0x34]
push dword [esi + 0x30]
push edi
push dword [eax + 8]
push 0x694a18
call fcn.005d3133
mov ebx, dword [ebp - 8]
add esp, 0x2c
call fcn.005e7ba3
cmp dword [eax + 0x70], edi
jle 0x5f9b92
call fcn.005e7ba3
mov edi, dword [eax + 0x70]
call fcn.005e7ba3
cmp dword [eax + 0x74], edi
jg 0x5f9ba4
call fcn.005e7ba3
mov edi, dword [eax + 0x74]
cmp ebx, edi
mov eax, 0xfa000
xorps xmm0, xmm0
cmovg ebx, edi
cmp ebx, eax
cmovl ebx, eax
and ebx, 0xfffffc00
mov dword [esi + 0xb0], ebx
lea ebx, [esi + 0xc]
movups xmmword [esi + 0x138], xmm0
movq qword [esi + 0x148], xmm0
mov dword [esi + 0x150], 0
mov edi, dword [ebx]
cmp edi, ebx
je 0x5f9bf9
lea eax, [edi - 0x16c]
push eax
call fcn.00604893
mov edi, dword [edi]
add esp, 4
cmp edi, ebx
jne 0x5f9be4
mov eax, dword [esi + 0x67a0]
sub eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x67a4]
sbb ecx, dword [ebp + 0x10]
add eax, 0x12c
adc ecx, 0
test ecx, ecx
jg 0x5f9c2c
jl 0x5f9c1e
cmp eax, 0x64
jae 0x5f9c2c
mov eax, 0x64
mov dword [ebp + 0x10], 0
jmp 0x5f9c2f
mov dword [ebp + 0x10], ecx
push esi
mov dword [esi + 0x130], eax
mov byte [esi + 0x67d7], 7
call fcn.005f8383
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret