Function at 0x675f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xa0]
test ebx, ebx
push edi
jne 0x675f76
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebx + 0xc]
cmp edi, dword [ebx + 0xf4]
mov ecx, dword [ebx + 8]
lea eax, [ebx + 0xf0]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
ja 0x675fa5
jb 0x675f98
cmp ecx, dword [eax]
jae 0x675fa5
push 0x3c
push 0
push eax
call fcn.006a1300
add esp, 0xc
mov edx, dword [ebx + 0xc4]
cmp dword [ebx + 0x104], edx
jae 0x675f6b
jmp 0x675fc0
mov eax, dword [ebx + 0x104]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0xc0]
mov ecx, dword [eax + ecx*4 + 4]
mov eax, dword [ebx + 0xf8]
add eax, ecx
xor ecx, ecx
cmp ecx, edi
ja 0x676009
jb 0x675fe9
cmp eax, dword [esp + 0x20]
ja 0x676009
mov dword [ebx + 0xf8], eax
add dword [ebx + 0x104], 1
cmp dword [ebx + 0x104], edx
jb 0x675fc0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x104]
mov edx, dword [ebx + 0xc0]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4]
mov edx, dword [eax + 8]
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
je 0x675f6b
mov eax, dword [ebx + 0xe0]
mov edi, dword [eax + ecx*8 - 8]
mov eax, dword [eax + ecx*8 - 4]
mov dword [esp + 0x10], edi
mov edi, dword [ebx + 0xd0]
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x14], eax
jne 0x6760c9
mov edi, dword [ebx + 0xd8]
cmp edi, ecx
jne 0x676061
mov edi, dword [ebx + 0xdc]
xor eax, eax
cmp dword [esp + 0x24], eax
jb 0x676079
ja 0x675f6b
cmp dword [esp + 0x20], edi
jae 0x675f6b
mov eax, dword [ebx + 0xf8]
cmp eax, edi
jae 0x6760ac
cmp eax, dword [esp + 0x20]
jne 0x67608f
cmp ecx, dword [esp + 0x24]
je 0x6760ac
mov ecx, dword [ebx + 0xd4]
mov edx, dword [ecx + eax*4]
add dword [esp + 0x10], edx
mov ecx, 0
adc dword [esp + 0x14], ecx
add eax, 1
cmp eax, edi
jb 0x676083
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
je 0x675f6b
mov ecx, dword [ebx + 0xd4]
mov edx, dword [esp + 0x20]
mov edi, dword [ecx + edx*4]
jmp 0x67613e
cmp dword [ebx + 0xa4], 0x736f756e
jne 0x676119
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x98]
cmp dword [eax + 0x136], 6
jne 0x676119
movzx eax, byte [ebx + 0x130]
imul eax, dword [ebx + 0x131]
shr eax, 3
cmp edi, eax
jae 0x676119
imul eax, edx
add dword [ebx + 8], edx
mov edi, eax
adc dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0xf0], ecx
mov dword [ebx + 0xf4], edx
mov eax, dword [ebx + 0xf8]
mov edx, dword [esp + 0x20]
xor ecx, ecx
sub edx, eax
mov eax, dword [esp + 0x24]
push ecx
push edi
sbb eax, ecx
push eax
push edx
call fcn.006abd10
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
test edi, edi
je 0x67618f
mov eax, edi
call fcn.006059f0
test eax, eax
je 0x675f6b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push 0
push 0
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 4]
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], edi
jne 0x675f6b
cmp dword [esp + 0x1c], 0
je 0x675f6b
mov edx, dword [esp + 0x24]
push edx
push dword [esp + 0x24]
lea eax, [ebx + 0x118]
lea edi, [ebx + 0x110]
lea ecx, [ebx + 0x108]
push ebx
call fcn.00677560
mov dword [esi + 8], eax
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0x94]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 1
mov dword [esi], ecx
mov dword [esi + 4], edx
mov edi, dword [ebx + 0xbc]
test edi, edi
je 0x676257
cmp dword [ebx + 0x120], edi
jae 0x676257
jmp 0x6761f0
mov eax, dword [ebx + 0x120]
mov ecx, dword [ebx + 0xb8]
mov edx, dword [ecx + eax*8]
add edx, dword [ebx + 0x124]
mov eax, 0
adc eax, dword [ebx + 0x128]
cmp eax, dword [esp + 0x24]
ja 0x67623b
jb 0x67621e
cmp edx, dword [esp + 0x20]
ja 0x67623b
mov dword [ebx + 0x124], edx
mov dword [ebx + 0x128], eax
add dword [ebx + 0x120], 1
cmp dword [ebx + 0x120], edi
jb 0x6761f0
jmp 0x676257
mov edx, dword [ebx + 0x120]
mov eax, dword [ebx + 0xb8]
mov eax, dword [eax + edx*8 + 4]
cdq
add eax, dword [esi + 8]
adc edx, dword [esi + 0xc]
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [ebx + 0xcc]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x67626e
mov dword [esi + 0x18], 1
jmp 0x6762e6
mov dword [esi + 0x18], 0
cmp dword [ebx + 0x11c], eax
jae 0x6762e6
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add edi, 1
adc ecx, 0
mov edx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0xc8]
mov eax, dword [eax + edx*4]
xor edx, edx
cmp eax, edi
jne 0x6762ab
cmp edx, ecx
jne 0x6762ab
mov dword [esi + 0x18], 1
mov eax, dword [ebx + 0x11c]
lea edx, [eax + 1]
cmp edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
jae 0x6762d8
mov edx, dword [ebx + 0xc8]
mov eax, dword [edx + eax*4 + 4]
xor edx, edx
cmp edx, ecx
ja 0x6762e6
jb 0x6762d4
cmp eax, edi
ja 0x6762e6
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp edx, eax
mov dword [ebx + 0x11c], edx
jb 0x67628b
mov ecx, dword [ebx + 0x80]
xor edx, edx
cmp ecx, edx
je 0x67640d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xa6]
add eax, dword [ebx + 0x18]
cmp ecx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jbe 0x67640d
mov edi, dword [ebx + 0x7c]
lea ecx, [ecx]
mov ecx, dword [edi + 8]
and ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x676370
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
imul edx
push edx
push eax
mov eax, ecx
mov ecx, dword [edi + 4]
cdq
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
mov ecx, 5
call fcn.006601c0
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 4]
adc eax, edx
cmp ecx, eax
mov dword [esp + 0x2c], eax
jl 0x67638b
jg 0x676370
mov edx, dword [esi]
cmp edx, dword [esp + 0x28]
jbe 0x67638b
mov eax, dword [esp + 0x10]
add eax, 1
add edi, 0x14
cmp eax, dword [ebx + 0x80]
mov dword [esp + 0x10], eax
jb 0x676320
jmp 0x67640d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
cdq
mov dword [esp + 0x28], eax
push 0
mov eax, ecx
mov dword [esp + 0x30], edx
cdq
push 0x3e8
push edx
push eax
call fcn.006abd10
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esi + 0x14]
cdq
push edx
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, 5
call fcn.006601c0
sub eax, dword [edi + 8]
push 0
sbb edx, dword [edi + 0xc]
add dword [esi], eax
push 0x3e8
adc dword [esi + 4], edx
mov eax, dword [esi + 0x10]
cdq
push edx
push eax
call fcn.006abd10
push edx
push eax
mov eax, dword [esi + 0x14]
cdq
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
mov ecx, 5
call fcn.006601c0
sub eax, dword [edi + 8]
sbb edx, dword [edi + 0xc]
add dword [esi + 8], eax
adc dword [esi + 0xc], edx
mov eax, dword [ebx + 8]
cmp dword [esp + 0x20], eax
mov edx, dword [ebx + 0xc]
jne 0x676438
cmp dword [esp + 0x24], edx
jne 0x676438
add eax, 1
mov ecx, eax
adc edx, 0
mov dword [ebx + 8], eax
lea eax, [ebx + 0xf0]
mov dword [ebx + 0xc], edx
mov dword [eax], ecx
mov dword [eax + 4], edx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4