Function at 0x5f7100
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 0x5f7168
mov ebx, dword [ecx + 0x44]
jmp 0x5f7212
test byte [esi + 0x1c], 0x80
je 0x5f7176
mov ebx, dword [esi + 8]
jmp 0x5f7212
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 0x5f720e
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 0x5f7389
mov eax, 0x1020
test word [edx + 0x28], ax
jne 0x5f7389
mov eax, dword [edx]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x8000
or eax, 0
je 0x5f7389
test byte [ecx + 0x28], 0x4b
jne 0x5f7389
test byte [esi], 0x80
jne 0x5f7389
test byte [ecx + 0x24], 0x10
jne 0x5f7389
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.005765f0
movzx eax, ax
add esp, 4
mov dword [esp + 0x20], eax
cmp esi, dword [esp + 0xc]
jae 0x5f7385
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
and ecx, dword [esi + 0x20]
and eax, dword [esi + 0x24]
or ecx, eax
jne 0x5f736f
push ecx
push ecx
push dword [esp + 0x18]
push esi
call fcn.005eb770
add esp, 0x10
test eax, eax
je 0x5f736f
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 0x5f731c
mov edx, dword [esp + 0x30]
test dword [edx], 0x4000
jne 0x5f731c
add eax, 0x1c
jmp 0x5f731f
add eax, 0xffffffe7
movzx eax, ax
mov word [edi + 0x12], ax
test ax, ax
jns 0x5f7331
xor eax, eax
mov word [edi + 0x12], ax
mov eax, 0x2b
push eax
push ecx
mov word [edi + 0x16], ax
call fcn.005bcae0
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.005f92b0
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x5f7373
mov eax, dword [esp + 0x14]
add esi, 0x30
test eax, eax
je 0x5f72a6
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 0x5f776a
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x5f73bc
push eax
push dword [esp + 0x38]
movzx eax, byte [ecx + 0x24]
push eax
push dword [ecx + 0x2c]
call fcn.005fba50
add esp, 0x10
test eax, eax
je 0x5f773c
test dword [ebx + 0x38], 0x200
jne 0x5f773c
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.005821e0
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 0x5f7469
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.005f9560
push edi
push dword [ebp + 8]
call fcn.005f92b0
add esp, 0x14
mov word [edi + 0x16], si
test eax, eax
jne 0x5f776a
jmp 0x5f770e
test dl, 0x20
je 0x5f7488
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
jmp 0x5f7532
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 0x5f74d4
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push ebx
push dword [eax]
call fcn.005f9b30
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 0x5f74e7
cmp ecx, 0x80000000
je 0x5f74fe
mov eax, dword [ebx + 0x38]
test eax, 0x1000
je 0x5f752c
test eax, 0x800
jne 0x5f752c
mov eax, esi
or eax, ecx
je 0x5f7532
push dword [edx + 0x2c]
push ebx
push dword [esp + 0x34]
call fcn.005f6c40
add esp, 0xc
test eax, eax
je 0x5f751e
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 0x5f7539
mov eax, esi
or eax, ecx
jne 0x5f7539
mov dword [edi + 0x2c], 0x240
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x5f75a8
mov eax, dword [esp + 0x28]
test byte [eax + 0x1c], 0x80
jne 0x5f75a8
cmp dword [ebx + 0x24], edx
jne 0x5f75a8
mov eax, dword [esp + 0x10]
test byte [eax + 0x28], 2
jne 0x5f75a8
mov eax, esi
or eax, ecx
jne 0x5f770e
test byte [ebx + 0x38], 4
jne 0x5f770e
mov ecx, dword [esp + 0x28]
mov ax, word [ebx + 0x30]
cmp ax, word [ecx + 0x28]
jge 0x5f770e
mov eax, dword [esp + 0x2c]
test byte [eax + 0x28], 4
jne 0x5f770e
cmp byte [0x6d4c3f], dl
je 0x5f770e
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x20
jne 0x5f770e
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 0x5f76d0
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 0x5f76ba
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], 0x579570
test ecx, ecx
je 0x5f7679
push ecx
lea eax, [esp + 0xa0]
push eax
call fcn.005e1800
mov eax, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0xc]
cmp word [esp + 0xb0], 0
jne 0x5f76b2
movzx ecx, word [ebx + edi + 8]
test cx, cx
jg 0x5f7692
add esi, ecx
jmp 0x5f769d
dec esi
test byte [ebx + edi + 0xc], 0x82
je 0x5f769d
sub esi, 0x13
mov ecx, dword [esp + 0x2c]
inc edx
add edi, 0x30
mov dword [esp + 0xc], edx
cmp edx, dword [ecx + 0x5c]
jl 0x5f7610
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
movzx eax, word [edi + 0x14]
push esi
push eax
call fcn.005bcae0
mov ecx, dword [esp + 0x24]
add esp, 8
mov word [edi + 0x14], ax
push ecx
push edi
push dword [esp + 0x3c]
call fcn.005f9560
mov eax, dword [esp + 0x1c]
add esp, 0xc
test byte [eax + 0x24], 0x10
je 0x5f76ee
cmp dword [ebx + 0x28], 0
jne 0x5f76fe
push edi
push dword [ebp + 8]
call fcn.005f92b0
add esp, 8
mov ecx, eax
jmp 0x5f7702
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov word [edi + 0x16], ax
test ecx, ecx
jne 0x5f7768
mov esi, dword [ebp + 8]
push 0
push ebx
push dword [esp + 0x18]
mov byte [esi + 0x10], 0
push esi
call fcn.005f7780
add esp, 0x10
mov dword [esp + 0x14], eax
cmp byte [esi + 0x10], 1
jne 0x5f7740
mov ecx, dword [esp + 0x28]
or dword [ecx + 0x1c], 0x100
jmp 0x5f7740
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x28], 2
je 0x5f774e
xor ebx, ebx
jmp 0x5f7751
mov ebx, dword [ebx + 0x14]
inc dword [esp + 0x38]
mov dword [esp + 0x18], ebx
test eax, eax
je 0x5f7390
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