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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x59c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x230]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00404bb7
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [0x41a9ec]
push dword [0x41b28c]
lea eax, [ebp - 0x230]
push eax
call dword [0x41a9f4]
push esi
lea eax, [ebp - 0x334]
push ebx
push eax
call fcn.00404bb7
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x334]
push eax
call dword [0x41a9f0]
push dword [0x41b274]
lea eax, [ebp - 0x334]
push eax
call dword [0x41a9f4]
push ebx
push 0x80
push 3
push ebx
push 3
push 1
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x544], edi
cmp edi, 0xffffffff
je 0x404610
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00404886
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 0x548]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [ebx + esi], 0
push dword [0x41b290]
push ebx
call dword [0x41aa1c]
test eax, eax
je 0x404601
push dword [0x41b294]
mov al, byte [eax + 0xb]
push ebx
mov byte [ebp - 0x53d], al
call dword [0x41aa1c]
mov esi, eax
test esi, esi
je 0x404601
push 0x4137f8
push esi
call dword [0x41aa1c]
test eax, eax
je 0x404601
mov edi, 0x104
mov byte [eax], 0
push edi
lea eax, [ebp - 0x438]
add esi, 5
push 0
push eax
call fcn.00404bb7
add esp, 0xc
cmp byte [ebp - 0x53d], 0x31
jne 0x4044d6
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [0x41a9f0]
push esi
lea eax, [ebp - 0x438]
push eax
call dword [0x41a9f4]
lea eax, [ebp - 0x28]
push eax
call fcn.00404a5a
pop ecx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x53c]
push eax
call dword [0x41a9f0]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x53c]
push eax
call dword [0x41a9f4]
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00404890
push edi
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00404bb7
add esp, 0x14
lea eax, [ebp - 0x12c]
push dword [0x41b280]
push eax
call dword [0x41a9f0]
push dword [0x41b14c]
lea eax, [ebp - 0x12c]
push eax
call dword [0x41a9f4]
push dword [0x41b298]
lea eax, [ebp - 0x12c]
push eax
call dword [0x41a9f4]
mov esi, 0x4137f4
lea eax, [ebp - 0x12c]
push esi
push eax
call dword [0x41a9f4]
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [0x41a9f4]
push esi
lea eax, [ebp - 0x12c]
push eax
call dword [0x41a9f4]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x59c]
push 0
push eax
call fcn.00404bb7
xor eax, eax
mov dword [ebp - 0x59c], esi
lea edi, [ebp - 0x558]
mov dword [ebp - 0x594], 0x41b428
stosd dword es:[edi], eax
add esp, 0xc
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x59c]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x12c]
push eax
push ecx
call dword [0x41aa64]
mov edi, dword [ebp - 0x544]
push edi
call dword [0x41a998]
push ebx
call dword [0x41a9b8]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051af
leave
ret