Function at 0x43dd96
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edi
mov eax, edx
mov dword [ebp - 0x30], edi
push ecx
push eax
mov dword [ebp - 0x24], eax
mov ebx, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43df71
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43df71
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jne 0x43df71
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
jne 0x43df71
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x1c]
mov dword [ebp - 8], edi
xor eax, eax
mov dword [ebp - 0xc], edi
mov ecx, esi
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004303dc
test eax, eax
je 0x43df71
cmp dword [ebp - 0x1c], ebx
je 0x43df71
cmp dword [ebp - 0x20], ebx
je 0x43df71
lea eax, [ebp - 0x28]
inc ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
call fcn.0043040c
test eax, eax
je 0x43df71
mov edi, dword [ebp - 8]
test edi, edi
je 0x43df71
cmp dword [ebp - 0xc], 0
je 0x43df71
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x34]
mov eax, esi
or eax, ecx
je 0x43df71
cmp edx, ecx
jl 0x43de90
jg 0x43de93
cmp dword [ebp - 0x18], esi
ja 0x43de93
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, edx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edx
push eax
push esi
push edi
push dword [ebp - 0x24]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ded4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x43df4e
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43df14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x43df4e
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push esi
push dword [ebp - 0xc]
push edi
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x43df4e
xor ebx, ebx
inc ebx
add dword [ebp - 0x10], esi
mov eax, esi
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
push 0
pop edx
adc dword [ebp - 0x14], edx
sub esi, eax
mov dword [ebp - 0x34], esi
sbb ecx, edx
mov dword [ebp - 0x30], ecx
test ebx, ebx
jne 0x43de7b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4