Function at 0x42cb78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp dword [ebx + 0xf2c], 0
je 0x42cb9e
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
call fcn.0042cf3e
add esp, 0xc
xor eax, eax
lea ecx, [ebx + 0x14b4]
push ecx
mov dword [ebx + 0xf2c], eax
mov dword [ebp - 0x41c], ecx
call fcn.00460634
add esp, 4
cmp eax, 5
jb 0x42cc16
mov edx, dword [ebp - 0x41c]
push edx
call fcn.0042de88
add esp, 4
mov edi, eax
cmp eax, 0xffffffff
jne 0x42cbe2
pop edi
mov eax, 0x74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x408]
push 0
lea ebx, [ecx + 0xf00]
lea ecx, [ebp - 0x400]
push edx
push 0x400
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 0x408], 0x400
jae 0x42cc22
pop edi
mov eax, 0x73
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea edx, [ebp - 0x400]
push 0x46f2c8
push edx
call fcn.00462298
add esp, 0xc
test eax, eax
jne 0x42cdbd
lea ecx, [ebp - 0x3f8]
push 4
push 0x46f2d0
push ecx
call fcn.00462298
add esp, 0xc
test eax, eax
jne 0x42cdbd
push 0xc
lea edx, [ebp - 0x400]
push edx
push ebx
call fcn.00460310
lea ecx, [ebp - 0x3f4]
mov dword [ebp - 0x408], 0x3f4
add esp, 0xc
push dword [ebp - 0x408]
push 0x46f2d8
push ecx
call fcn.0042ce49
add esp, 0xc
mov esi, eax
test eax, eax
je 0x42cdbd
push 0x18
lea edx, [ebx + 0xc]
push esi
push edx
call fcn.00460310
add esp, 0xc
cmp word [ebx + 0x14], 1
jne 0x42cdbd
mov cx, word [ebx + 0x16]
test cx, cx
jle 0x42cdbd
cmp cx, 2
jg 0x42cdbd
mov dx, word [ebx + 0x20]
cmp dx, 0x100
jg 0x42cdbd
mov eax, edx
cwde
movsx ecx, cx
cdq
idiv ecx
cmp eax, 4
ja 0x42cdbd
test eax, eax
je 0x42cdbd
mov ecx, dword [ebx + 0x18]
xor edx, edx
mov dword [ebp - 0x418], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x414], edx
lea edx, [esi + 0x18]
fild qword [ebp - 0x418]
fstp xword [ecx + 0x2128]
mov dword [ebp - 0x408], 0x3dc
push dword [ebp - 0x408]
push 0x46f2e0
push edx
call fcn.0042ce49
add esp, 0xc
mov esi, eax
test eax, eax
je 0x42cdbd
push 8
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x404], esi
push dword [ebp - 0x404]
push ecx
call fcn.00460310
add esp, 0xc
lea ecx, [ebp - 0x400]
push 0
push 0
mov edx, dword [ebp - 0x404]
lea esi, [edx + 8]
sub esi, ecx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x42ce28
movsx edx, word [ebx + 0x20]
lea ecx, [ebp - 0x300]
push edx
push 0
push ecx
call fcn.0046071c
lea edx, [ebp - 0x408]
push 0
push edx
movsx ecx, word [ebx + 0x20]
lea edx, [ebp - 0x400]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 0xc
movsx ecx, word [ebx + 0x20]
cmp ecx, dword [ebp - 0x408]
je 0x42cdc9
pop edi
mov eax, 0x78
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx edx, word [ebx + 0x20]
lea ecx, [ebp - 0x300]
push edx
lea edx, [ebp - 0x400]
push ecx
push edx
call fcn.00462298
add esp, 0xc
test eax, eax
jne 0x42ce14
movsx ecx, word [ebx + 0x20]
lea edx, [ebp - 0x408]
add esi, ecx
push 0
push edx
push ecx
lea ecx, [ebp - 0x400]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
movsx edx, word [ebx + 0x20]
cmp edx, dword [ebp - 0x408]
jne 0x42cdbd
jmp 0x42cdc9
push 0
mov ebx, dword [ebp + 0xc]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42ce34
pop edi
mov eax, 0x79
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xf2c], edi
xor eax, eax
mov dword [ebx + 0xf30], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret