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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bab0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x608190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x80], ecx
cmp dword [ebp + 0x10], 0
jne 0x404b55
push 0x5d6c03
mov ecx, dword [ebp + 0xc]
call fcn.00412730
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00402790
mov dword [ebp - 0x5c], eax
push 0
push 0x8000027
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp - 0x5c]
call fcn.0042e3d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x404c12
push 0x5d8540
push 0
push 3
lea eax, [ebp - 0x98]
push eax
call fcn.00406240
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [ebp - 0x6c], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x68], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x64], ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.004026d0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x40]
push edx
push str._tasp::library_CreateFile__s_err_lu.
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x68]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x64]
mov dword [eax + 8], ecx
call fcn.00405320
add esp, 0x18
mov dword [ebp - 0x18], 0
jmp 0x404e29
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 3
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x404ca7
push 0x5d85c8
push 0
push 3
lea eax, [ebp - 0x8c]
push eax
call fcn.00406240
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov dword [ebp - 0x7c], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x78], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x74], ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.004026d0
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x34]
push edx
push str._tasp::library_ReadFile__s_err_lu.
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x78]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x74]
mov dword [eax + 8], ecx
call fcn.00405320
add esp, 0x18
cmp dword [ebp - 0x1c], 3
jne 0x404d85
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x14]
cmp ecx, 0xef
jne 0x404cf3
mov edx, 1
shl edx, 0
movzx eax, byte [ebp + edx - 0x14]
cmp eax, 0xbb
jne 0x404cf3
mov ecx, 1
shl ecx, 1
movzx edx, byte [ebp + ecx - 0x14]
cmp edx, 0xbf
jne 0x404cf3
jmp 0x404d83
push 0x5d8650
push 2
push 1
lea eax, [ebp - 0xa4]
push eax
call fcn.00406240
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
mov dword [ebp - 0x50], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x48], ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.004026d0
mov dword [ebp - 0x58], eax
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x14]
push eax
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x14]
push edx
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x14]
push edx
mov eax, dword [ebp - 0x58]
push eax
push str._tasp::library__s_not_utf8_flag_b00x_x_b10x_x_b20x_x.
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0x50]
mov dword [ecx], edx
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x48]
mov dword [ecx + 8], edx
call fcn.00405320
add esp, 0x20
mov dword [ebp - 0x24], 0
jmp 0x404d8c
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x24], 0
je 0x404da4
mov eax, dword [ebp - 0x30]
sub eax, 3
mov dword [ebp - 0x20], eax
jmp 0x404dbd
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0042dd60
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00443350
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x404e29
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x404e17
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x20]
jne 0x404e17
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0042dd60
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00443359
add esp, 4
jmp 0x404e31
mov dword [ebp - 4], 0xffffffff
jmp 0x404e41
cmp dword [ebp - 0x18], 0
je 0x404e51
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc