Function at 0x40dff0
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 [0x5126a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
jne 0x40e02a
xor eax, eax
jmp 0x40e245
cmp dword [ebp + 0xc], 0
jne 0x40e037
xor eax, eax
jmp 0x40e245
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.00473bb0
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.00472780
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 0x10
push eax
call fcn.00472810
add esp, 4
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x274]
push edx
call fcn.00472130
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 0x40e0d0
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x30]
jge 0x40e1c7
mov eax, dword [ebp + 8]
push eax
push 0x10
push 1
lea ecx, [ebp - 0x67c]
push ecx
call fcn.00473bb0
add esp, 0x10
cmp eax, 0x10
je 0x40e148
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.004749e0
push 0x400
push 0
lea eax, [ebp - 0x67c]
push eax
call fcn.00472780
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x79c]
push eax
call fcn.00472780
add esp, 0xc
xor eax, eax
jmp 0x40e245
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x67c]
push ecx
push 0
lea edx, [ebp - 0x79c]
push edx
call fcn.00402b71
add esp, 0x10
mov dword [ebp - 0x7a8], 0
jmp 0x40e182
mov eax, dword [ebp - 0x7a8]
add eax, 1
mov dword [ebp - 0x7a8], eax
cmp dword [ebp - 0x7a8], 0x10
jge 0x40e1c2
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 0x40e173
jmp 0x40e0c7
mov eax, dword [ebp + 8]
push eax
push 1
push 1
lea ecx, [ebp - 0x69]
push ecx
call fcn.00473bb0
add esp, 0x10
movsx eax, byte [ebp - 0x5d]
movsx ecx, byte [ebp - 0x69]
cmp eax, ecx
jne 0x40e1f3
movsx eax, byte [ebp - 0x5d]
movsx ecx, byte [ebp - 0x51]
cmp eax, ecx
je 0x40e240
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.004749e0
push 0x400
push 0
lea eax, [ebp - 0x67c]
push eax
call fcn.00472780
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x79c]
push eax
call fcn.00472780
add esp, 0xc
xor eax, eax
jmp 0x40e245
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x40e278]
call fcn.00474980
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a10
add esp, 0x86c
cmp ebp, esp
call fcn.004749e0
mov esp, ebp
pop ebp
ret 0x10