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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x40], 0xffffffff
mov edi, dword [ebx + 8]
mov edx, dword [ebx]
mov dword [esp + 0x14], 0
mov dword [esp + 0x38], 1
movzx eax, byte [edi + 0x10]
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], edx
lea ecx, [eax + eax*8]
mov eax, dword [edx + 4]
lea ecx, [ecx + 1]
test byte [eax + ecx*8 + 0x28], 2
lea ecx, [eax + ecx*8]
mov esi, dword [ecx + 0x10]
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], eax
je 0x5f68e8
mov ebx, dword [ecx + 0x44]
jmp 0x5f6992
test byte [esi + 0x1c], 0x80
je 0x5f68f6
mov ebx, dword [esi + 8]
jmp 0x5f6992
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], eax
xorps xmm0, xmm0
lea eax, [esp + 0x3c]
movlpd qword [esp + 0x87], xmm0
mov dword [esp + 0x58], eax
mov eax, 3
or dword [esp + 0x88], eax
mov word [esp + 0x80], ax
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x8f], xmm0
mov byte [esp + 0x97], 0
mov dword [esp + 0x82], 0x10001
mov byte [esp + 0x86], 5
mov dword [esp + 0x5c], esi
mov ax, word [esi + 0x26]
mov word [esp + 0x3c], ax
xor eax, eax
mov word [esp + 0x3e], ax
test byte [ecx + 0x28], 1
jne 0x5f698e
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x64], eax
lea ebx, [esp + 0x50]
mov eax, esi
mov dword [esp + 0x18], ebx
mov esi, 0x1c
add esi, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], esi
movzx eax, word [eax + 0x26]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x5f6b09
mov eax, 0x1020
test word [edx + 0x28], ax
jne 0x5f6b09
mov eax, dword [edx]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x8000
or eax, 0
je 0x5f6b09
test byte [ecx + 0x28], 0x4b
jne 0x5f6b09
test byte [esi], 0x80
jne 0x5f6b09
test byte [ecx + 0x24], 0x10
jne 0x5f6b09
mov eax, dword [esp + 0x34]
push dword [esp + 0x1c]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x10], eax
call fcn.00575d20
movzx eax, ax
add esp, 4
mov dword [esp + 0x20], eax
cmp esi, dword [esp + 0xc]
jae 0x5f6b05
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
and ecx, dword [esi + 0x20]
and eax, dword [esi + 0x24]
or ecx, eax
jne 0x5f6aef
push ecx
push ecx
push dword [esp + 0x18]
push esi
call fcn.005eaed0
add esp, 0x10
test eax, eax
je 0x5f6aef
mov eax, dword [edi + 0x38]
mov ecx, 1
mov edx, dword [esp + 0x28]
mov word [edi + 0x18], cx
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x20], 0
mov dword [eax], esi
mov eax, dword [esp + 0x1c]
add eax, ecx
mov word [edi + 0x12], ax
cmp byte [edx + 0x2b], 2
je 0x5f6a9c
mov edx, dword [esp + 0x30]
test dword [edx], 0x4000
jne 0x5f6a9c
add eax, 0x1c
jmp 0x5f6a9f
add eax, 0xffffffe7
movzx eax, ax
mov word [edi + 0x12], ax
test ax, ax
jns 0x5f6ab1
xor eax, eax
mov word [edi + 0x12], ax
mov eax, 0x2b
push eax
push ecx
mov word [edi + 0x16], ax
call fcn.005bc250
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x14], ax
mov dword [edi + 0x2c], 0x4000
mov eax, dword [esi + 0x24]
or ecx, dword [esi + 0x20]
or eax, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
mov dword [edi], ecx
mov dword [edi + 4], eax
call fcn.005f8a10
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x5f6af3
mov eax, dword [esp + 0x14]
add esi, 0x30
test eax, eax
je 0x5f6a26
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop dword [eax]
test ebx, ebx
je 0x5f6eea
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x5f6b3c
push eax
push dword [esp + 0x38]
movzx eax, byte [ecx + 0x24]
push eax
push dword [ecx + 0x2c]
call fcn.005fb1b0
add esp, 0x10
test eax, eax
je 0x5f6ebc
test dword [ebx + 0x38], 0x200
jne 0x5f6ebc
mov eax, dword [ebx + 8]
xor ecx, ecx
movzx eax, word [eax]
mov dword [edi + 0x18], ecx
mov word [edi + 0x1c], cx
mov dword [edi + 0x30], ecx
mov byte [edi + 0x11], cl
mov word [edi + 0x12], cx
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x16], ax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ecx
mov dword [edi + 0x20], ebx
push dword [eax + 0x2c]
push ebx
push dword [ebp + 8]
call fcn.00581900
mov edx, dword [ebx + 0x38]
add esp, 0xc
mov ecx, edx
mov esi, eax
and ecx, 3
mov dword [esp + 0x30], esi
cmp cl, 3
jne 0x5f6be9
mov eax, dword [esp + 0x38]
xor edx, edx
test esi, esi
movzx ecx, al
mov esi, dword [esp + 0x1c]
push esi
push edi
push dword [esp + 0x3c]
cmovne edx, ecx
mov dword [edi + 0x2c], 0x100
lea eax, [esi + 0x10]
mov byte [edi + 0x11], dl
mov word [edi + 0x14], ax
call fcn.005f8cc0
push edi
push dword [ebp + 8]
call fcn.005f8a10
add esp, 0x14
mov word [edi + 0x16], si
test eax, eax
jne 0x5f6eea
jmp 0x5f6e8e
test dl, 0x20
je 0x5f6c08
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
jmp 0x5f6cb2
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x24]
and ecx, dword [edx + 0x3c]
and esi, dword [edx + 0x38]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
test eax, eax
je 0x5f6c54
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push ebx
push dword [eax]
call fcn.005f9290
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [edi + 0x2c], 0x200
test esi, esi
jne 0x5f6c67
cmp ecx, 0x80000000
je 0x5f6c7e
mov eax, dword [ebx + 0x38]
test eax, 0x1000
je 0x5f6cac
test eax, 0x800
jne 0x5f6cac
mov eax, esi
or eax, ecx
je 0x5f6cb2
push dword [edx + 0x2c]
push ebx
push dword [esp + 0x34]
call fcn.005f63c0
add esp, 0xc
test eax, eax
je 0x5f6c9e
or dword [edi + 0x2c], eax
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
jmp 0x5f6cb9
mov eax, esi
or eax, ecx
jne 0x5f6cb9
mov dword [edi + 0x2c], 0x240
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x5f6d28
mov eax, dword [esp + 0x28]
test byte [eax + 0x1c], 0x80
jne 0x5f6d28
cmp dword [ebx + 0x24], edx
jne 0x5f6d28
mov eax, dword [esp + 0x10]
test byte [eax + 0x28], 2
jne 0x5f6d28
mov eax, esi
or eax, ecx
jne 0x5f6e8e
test byte [ebx + 0x38], 4
jne 0x5f6e8e
mov ecx, dword [esp + 0x28]
mov ax, word [ebx + 0x30]
cmp ax, word [ecx + 0x28]
jge 0x5f6e8e
mov eax, dword [esp + 0x2c]
test byte [eax + 0x28], 4
jne 0x5f6e8e
cmp byte [0x6d3c3f], dl
je 0x5f6e8e
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x20
jne 0x5f6e8e
mov eax, dword [esp + 0x38]
xor ecx, ecx
movzx eax, al
test edx, edx
cmovne ecx, eax
mov byte [edi + 0x11], cl
movsx ecx, word [ebx + 0x30]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x28]
cdq
movsx ecx, word [ecx + 0x28]
idiv ecx
mov ecx, dword [esp + 0x1c]
inc eax
add eax, ecx
or esi, dword [esp + 0xc]
mov word [edi + 0x14], ax
je 0x5f6e50
lea eax, [ecx + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x2c]
movzx esi, ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x5c], edx
jle 0x5f6e3a
mov eax, dword [esp + 0x18]
xor edi, edi
nop
mov ebx, dword [ecx + 0x68]
xorps xmm0, xmm0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x48]
mov dword [esp + 0xb4], edx
mov ecx, dword [ebx + edi]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x9c], 0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
mov dword [esp + 0x48], eax
mov dword [esp + 0xa0], 0x578ca0
test ecx, ecx
je 0x5f6df9
push ecx
lea eax, [esp + 0xa0]
push eax
call fcn.005e0f60
mov eax, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0xc]
cmp word [esp + 0xb0], 0
jne 0x5f6e32
movzx ecx, word [ebx + edi + 8]
test cx, cx
jg 0x5f6e12
add esi, ecx
jmp 0x5f6e1d
dec esi
test byte [ebx + edi + 0xc], 0x82
je 0x5f6e1d
sub esi, 0x13
mov ecx, dword [esp + 0x2c]
inc edx
add edi, 0x30
mov dword [esp + 0xc], edx
cmp edx, dword [ecx + 0x5c]
jl 0x5f6d90
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
movzx eax, word [edi + 0x14]
push esi
push eax
call fcn.005bc250
mov ecx, dword [esp + 0x24]
add esp, 8
mov word [edi + 0x14], ax
push ecx
push edi
push dword [esp + 0x3c]
call fcn.005f8cc0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test byte [eax + 0x24], 0x10
je 0x5f6e6e
cmp dword [ebx + 0x28], 0
jne 0x5f6e7e
push edi
push dword [ebp + 8]
call fcn.005f8a10
add esp, 8
mov ecx, eax
jmp 0x5f6e82
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov word [edi + 0x16], ax
test ecx, ecx
jne 0x5f6ee8
mov esi, dword [ebp + 8]
push 0
push ebx
push dword [esp + 0x18]
mov byte [esi + 0x10], 0
push esi
call fcn.005f6f00
add esp, 0x10
mov dword [esp + 0x14], eax
cmp byte [esi + 0x10], 1
jne 0x5f6ec0
mov ecx, dword [esp + 0x28]
or dword [ecx + 0x1c], 0x100
jmp 0x5f6ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x28], 2
je 0x5f6ece
xor ebx, ebx
jmp 0x5f6ed1
mov ebx, dword [ebx + 0x14]
inc dword [esp + 0x38]
mov dword [esp + 0x18], ebx
test eax, eax
je 0x5f6b10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret