Function at 0x40e010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x86c]
mov ecx, 0x21b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x513690]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
jne 0x40e04a
xor eax, eax
jmp 0x40e265
cmp dword [ebp + 0xc], 0
jne 0x40e057
xor eax, eax
jmp 0x40e265
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push eax
push 1
push 1
lea ecx, [ebp - 0x5d]
push ecx
call fcn.00474080
add esp, 0x10
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x24], 0
push 0x200
push 0
lea eax, [ebp - 0x274]
push eax
call fcn.00472c50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 0x10
push eax
call fcn.00472ce0
add esp, 4
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x274]
push edx
call fcn.00472600
add esp, 0xc
push 0x100
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x79c]
push ecx
call fcn.004010f5
add esp, 0xc
mov al, byte [ebp + 0x14]
mov byte [ebp - 0x51], al
mov dword [ebp - 0x3c], 0
jmp 0x40e0f0
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x30]
jge 0x40e1e7
mov eax, dword [ebp + 8]
push eax
push 0x10
push 1
lea ecx, [ebp - 0x67c]
push ecx
call fcn.00474080
add esp, 0x10
cmp eax, 0x10
je 0x40e168
mov esi, esp
push 0
push str.Error__
push str.fread_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00474eb0
push 0x400
push 0
lea eax, [ebp - 0x67c]
push eax
call fcn.00472c50
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x79c]
push eax
call fcn.00472c50
add esp, 0xc
xor eax, eax
jmp 0x40e265
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x67c]
push ecx
push 0
lea edx, [ebp - 0x79c]
push edx
call fcn.00402b67
add esp, 0x10
mov dword [ebp - 0x7a8], 0
jmp 0x40e1a2
mov eax, dword [ebp - 0x7a8]
add eax, 1
mov dword [ebp - 0x7a8], eax
cmp dword [ebp - 0x7a8], 0x10
jge 0x40e1e2
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x7a8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x7a8]
mov dl, byte [ebp + edx - 0x67c]
mov byte [ecx + eax], dl
movsx eax, byte [ebp - 0x51]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x7a8]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx + ecx]
add eax, ecx
mov byte [ebp - 0x51], al
jmp 0x40e193
jmp 0x40e0e7
mov eax, dword [ebp + 8]
push eax
push 1
push 1
lea ecx, [ebp - 0x69]
push ecx
call fcn.00474080
add esp, 0x10
movsx eax, byte [ebp - 0x5d]
movsx ecx, byte [ebp - 0x69]
cmp eax, ecx
jne 0x40e213
movsx eax, byte [ebp - 0x5d]
movsx ecx, byte [ebp - 0x51]
cmp eax, ecx
je 0x40e260
mov esi, esp
push 0
push str.Error__
push str.CheckCrc_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00474eb0
push 0x400
push 0
lea eax, [ebp - 0x67c]
push eax
call fcn.00472c50
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x79c]
push eax
call fcn.00472c50
add esp, 0xc
xor eax, eax
jmp 0x40e265
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x40e298]
call fcn.00474e50
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474ee0
add esp, 0x86c
cmp ebp, esp
call fcn.00474eb0
mov esp, ebp
pop ebp
ret 0x10