Function at 0x407ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x428]
mov dword [ebp - 4], eax
test edx, edx
je 0x407f25
push 0xe
push str.Db_is_damaged.
mov ecx, edi
call fcn.0041ca90
add esp, 8
test eax, eax
je 0x407f5a
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x418]
jb 0x407f63
test edi, edi
je 0x407f5a
mov edx, dword [edi + 4]
test edx, edx
je 0x407f47
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov ecx, 0x57
mov dword [edi], 0x19
call fcn.0041b480
mov dword [edi + 4], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [eax - 1]
and esi, 0x7f
mov esi, dword [ebx + esi*8 + 0xc]
test esi, esi
je 0x407f80
cmp dword [esi + 0x14], eax
je 0x408018
mov esi, dword [esi]
test esi, esi
jne 0x407f71
mov edx, edi
mov ecx, ebx
call fcn.00407a70
mov esi, eax
test esi, esi
je 0x407f5a
mov edx, dword [ebp - 4]
xorps xmm0, xmm0
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], 0
mov ecx, dword [ebx + 0x41c]
mov eax, ecx
imul eax, edx
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], eax
cdq
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], edx
push eax
lea eax, [ebp - 8]
push eax
push ecx
push dword [esi + 0x10]
push dword [ebx + 0x414]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408087
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0xa0
cmove eax, ecx
mov dword [ebp - 4], eax
test edi, edi
je 0x4080ba
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x408011
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add esp, 4
mov ecx, eax
jmp 0x4080ac
test esi, esi
je 0x407f80
mov eax, dword [esi + 0x14]
lea edx, [ebx + 0xc]
mov ecx, dword [esi]
dec eax
and eax, 0x7f
lea edx, [edx + eax*8]
mov eax, dword [esi + 4]
test ecx, ecx
je 0x40803b
mov dword [ecx + 4], eax
jmp 0x40803e
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [edx]
mov dword [esi], eax
test eax, eax
je 0x408054
mov eax, dword [edx]
mov dword [eax + 4], esi
jmp 0x408057
mov dword [edx + 4], esi
mov dword [edx], esi
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esi + 4], edx
lea edx, [esi + 8]
test ecx, ecx
je 0x408078
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
jmp 0x40810e
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
jmp 0x40810e
cmp dword [ebp - 8], 0
jne 0x4080cc
test edi, edi
je 0x4080ba
mov edx, dword [edi + 4]
test edx, edx
je 0x4080a7
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov ecx, 0x26
mov dword [edi], 0x19
call fcn.0041b480
mov dword [edi + 4], eax
mov edx, esi
mov ecx, ebx
call fcn.00407a30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x42c]
test eax, eax
je 0x4080e7
push dword [esi + 0x10]
push dword [esi + 0x14]
push dword [ebx + 0x434]
call eax
add esp, 0xc
mov eax, dword [esi + 0x14]
lea ecx, [ebx + 0xc]
dec eax
and eax, 0x7f
lea ecx, [ecx + eax*8]
mov eax, dword [ecx]
mov dword [esi], eax
test eax, eax
je 0x408103
mov eax, dword [ecx]
mov dword [eax + 4], esi
jmp 0x408106
mov dword [ecx + 4], esi
mov dword [ecx], esi
lea edx, [esi + 8]
mov dword [esi + 4], ecx
mov dword [edx], 0
mov eax, dword [ebx + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 8]
pop edi
mov dword [eax], esi
mov dword [ebx + 8], edx
or dword [esi + 0x18], 2
mov eax, dword [esi + 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret