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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0xc4
push eax
call sub.kernel32.dll_EnterCriticalSection_1
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
add eax, 0xdc
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4129f0
cmp dword [ebp - 8], 0
je 0x4129f0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x28]
jbe 0x4129dd
push 0
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, 0x32
xor edx, edx
div ecx
mov dword [ebp - 0xc], eax
jmp 0x412934
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x41293f
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 0
je 0x412922
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
push eax
push 0x404
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc0]
push eax
call sub.user32.dll_PostMessageA
cmp dword [ebp - 0x20], 0x31
jne 0x412934
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x28]
jb 0x4128c8
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x28]
jne 0x4129e7
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
dec eax
cmp eax, 0
jb 0x4129a5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
add dword [eax + 0x10], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
add dword [eax + 0x14], edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24], 1
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x412971
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 0
je 0x4129e7
push 0x64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
push eax
push 0x404
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc0]
push eax
call sub.user32.dll_PostMessageA
jmp 0x4129e7
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
add eax, 0xc4
push eax
call sub.kernel32.dll_LeaveCriticalSection_1
mov esp, ebp
pop ebp
ret