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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5b5ef4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x2c], esi
test eax, eax
je 0x421ec5
push eax
call edi
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x421ed2
push eax
call edi
add esp, 4
push 0x5b6448
lea ecx, [ebp - 0x28]
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00403190
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov ecx, esi
lea edx, [ecx + 2]
test eax, eax
je 0x421f60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421f03
mov eax, dword [ebp - 0x14]
sub ecx, edx
mov edx, dword [ebp - 0x18]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x421f4a
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x28]
lea edi, [edx + ecx]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x18], edi
lea eax, [esi + edx*2]
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x421f79
push ecx
push esi
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402470
jmp 0x421f79
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421f60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402e60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x421fad
push 0x63
push 0x597830
jmp 0x42201e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x421fc5
push 0x63
push str.File_is_empty
jmp 0x42201e
cmp esi, 0x400000
jbe 0x421fd6
push 0x63
push str.File_too_large
jmp 0x42201e
push esi
mov dword [ebp - 0x30], 0
call fcn.00572c0c
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x30]
push 0
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], esi
je 0x422041
mov esi, dword [ebp - 0x2c]
push esi
call fcn.0053339b
add esp, 4
mov ecx, ebx
call fcn.00421c00
push 0x63
push str.Could_not_read_file
mov esi, dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebx + 0x10]
push eax
call esi
push 0x31
lea eax, [ebx + 0xd8]
push 0x595304
push eax
call esi
add esp, 0x18
xor bl, bl
jmp 0x42205b
push dword [ebp + 0xc]
mov ecx, ebx
push esi
mov esi, dword [ebp - 0x2c]
push esi
call fcn.00421cf0
push esi
mov bl, al
call fcn.0053339b
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x422091
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422087
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4220b1
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053436b
mov esp, ebp
pop ebp
ret 8
call fcn.0055f150
int3