Function at 0x40b750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
jne 0x40b76d
lea eax, [edi - 0x66]
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
add eax, dword [edi + 0xc]
mov ecx, dword [edi]
push ebx
push esi
push 0
push eax
push ecx
call fcn.0051096d
add esp, 0xc
test eax, eax
je 0x40b78f
or esi, 0xffffffff
mov dword [ebp - 4], esi
jmp 0x40b7b9
mov eax, dword [edi]
lea ebx, [ebp - 8]
call fcn.0040b530
test eax, eax
je 0x40b7a6
mov dword [ebp - 4], 0xffffffff
jmp 0x40b7b6
cmp dword [ebp - 8], 0x2014b50
je 0x40b7b6
mov dword [ebp - 4], 0xffffff99
or esi, 0xffffffff
mov eax, dword [edi]
lea ebx, [ebp - 0x58]
call fcn.0040b4e0
test eax, eax
je 0x40b7ca
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x54]
call fcn.0040b4e0
test eax, eax
je 0x40b7db
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x50]
call fcn.0040b4e0
test eax, eax
je 0x40b7ec
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x4c]
call fcn.0040b4e0
test eax, eax
je 0x40b7fd
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x48]
call fcn.0040b530
test eax, eax
je 0x40b80e
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x20]
call fcn.0040b700
mov eax, dword [edi]
lea ebx, [ebp - 0x44]
call fcn.0040b530
test eax, eax
je 0x40b82a
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x40]
call fcn.0040b530
test eax, eax
je 0x40b83b
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x3c]
call fcn.0040b530
test eax, eax
je 0x40b84c
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x38]
call fcn.0040b4e0
test eax, eax
je 0x40b85d
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x34]
call fcn.0040b4e0
test eax, eax
je 0x40b86e
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x30]
call fcn.0040b4e0
test eax, eax
je 0x40b87f
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x2c]
call fcn.0040b4e0
test eax, eax
je 0x40b890
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x28]
call fcn.0040b4e0
test eax, eax
je 0x40b8a1
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 0x24]
call fcn.0040b530
test eax, eax
je 0x40b8b2
mov dword [ebp - 4], esi
mov eax, dword [edi]
lea ebx, [ebp - 8]
call fcn.0040b530
test eax, eax
je 0x40b8c3
mov dword [ebp - 4], esi
cmp dword [ebp - 4], 0
mov esi, dword [ebp - 0x38]
jne 0x40b97a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40b913
mov ecx, dword [ebp + 0x18]
cmp esi, ecx
jae 0x40b8e6
mov byte [esi + eax], 0
mov ebx, esi
jmp 0x40b8e8
mov ebx, ecx
test esi, esi
je 0x40b90b
test ecx, ecx
je 0x40b90b
mov edx, dword [edi]
push edx
push 1
push ebx
push eax
call fcn.005108c6
add esp, 0x10
cmp eax, 1
je 0x40b90b
mov dword [ebp - 4], 0xffffffff
sub esi, ebx
cmp dword [ebp - 4], 0
jne 0x40b97a
cmp dword [ebp + 0x1c], 0
je 0x40b97a
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp + 0x20]
cmp ebx, edi
jae 0x40b925
mov edi, ebx
test esi, esi
je 0x40b949
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push esi
push ecx
call fcn.0051096d
add esp, 0xc
test eax, eax
jne 0x40b942
xor esi, esi
jmp 0x40b949
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40b974
cmp dword [ebp + 0x20], 0
jbe 0x40b974
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x1c]
push eax
push 1
push edi
push ecx
call fcn.005108c6
add esp, 0x10
cmp eax, 1
je 0x40b974
mov dword [ebp - 4], 0xffffffff
sub ebx, edi
add esi, ebx
jmp 0x40b97d
add esi, dword [ebp - 0x34]
cmp dword [ebp - 4], 0
jne 0x40ba16
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x40b9f9
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp + 0x28]
cmp ebx, edi
jae 0x40b99e
mov byte [ebx + eax], 0
mov edi, ebx
test esi, esi
je 0x40b9be
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 1
push esi
push eax
call fcn.0051096d
add esp, 0xc
test eax, eax
je 0x40b9be
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40b9f3
cmp dword [ebp + 0x28], 0
jbe 0x40b9f3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x24]
push edx
push 1
push edi
push eax
call fcn.005108c6
add esp, 0x10
cmp eax, 1
je 0x40b9f3
pop esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
jne 0x40ba16
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40ba0a
mov ecx, 0x14
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40ba16
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret