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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x330
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
je 0x401a64
cmp eax, 0x111
je 0x401ca3
cmp eax, 0x4e
je 0x401ba0
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x191
xor ebx, ebx
lea esi, [ebp - 0x210]
mov dword [esp], eax
call sym.unk_162
sub esp, 8
mov dword [global_hEncCombo], eax
cmp ebx, 2
je 0x401ada
cmp ebx, 3
je 0x401b24
cmp ebx, 1
je 0x401d00
mov eax, esi
call sym._load_encoding_name.part.0.constprop.9
mov eax, dword [global_hEncCombo]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], eax
call sym.unk_96
sub esp, 0x10
cmp ebx, 3
je 0x401b6c
add ebx, 1
cmp ebx, 2
jne 0x401a8c
mov eax, dword [0x40a400]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x181
mov dword [esp], eax
call sym.unk_169
sub esp, 0x10
mov eax, dword [global_hEncCombo]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], eax
call sym.unk_96
sub esp, 0x10
jmp 0x401ad2
mov eax, dword [0x40a400]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x182
mov dword [esp], eax
call sym.unk_169
mov eax, dword [global_hEncCombo]
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], eax
call sym.unk_96
sub esp, 0x10
mov eax, dword [0x40b15c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [global_hEncCombo]
mov dword [esp + 4], 0x14e
mov dword [esp], eax
call sym.unk_96
xor eax, eax
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0xfffffda6
jne 0x401a59
mov edx, dword [0x40b160]
test edx, edx
je 0x401a59
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x210]
mov dword [esp], eax
call sym.unk_178
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0x465
mov dword [esp], eax
call sym.unk_96
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
call sym.unk_128
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x401a59
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.unk_203
sub esp, 8
cmp eax, 0xffffffff
je 0x401dcb
lea edx, [ebp - 0x318]
cmp eax, 0xff
mov dword [esp], ebx
lea esi, [ebp - 0x30f]
mov dword [esp + 0xc], edx
mov edx, 0xff
cmova eax, edx
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [esp + 8], eax
call sym.unk_115
sub esp, 0x14
mov dword [esp], ebx
test eax, eax
jne 0x401d30
call sym.unk_161
sub esp, 4
jmp 0x401a59
cmp word [ebp + 0x10], 0x191
jne 0x401a59
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cmp eax, 1
jne 0x401a59
mov eax, dword [global_hEncCombo]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], eax
call sym.unk_96
mov edx, 0
sub esp, 0x10
cmp eax, 0xffffffff
cmove eax, edx
mov dword [0x40b15c], eax
jmp 0x401a59
mov eax, dword [0x40a400]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x180
mov dword [esp], eax
call sym.unk_169
sub esp, 0x10
jmp 0x401afe
call sym.unk_161
mov eax, dword [ebp - 0x318]
sub esp, 4
cmp eax, 2
jbe 0x401d4f
movzx ecx, word [0x409136]
cmp word [esi], cx
je 0x401db3
lea edx, [ebp - 0x314]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [ebp - 0x314], 0x288
call sym.unk_157
mov eax, dword [ebp - 0x314]
sub esp, 0xc
test al, 8
jne 0x401d9b
and eax, 0x80
jne 0x401da7
xor edx, edx
mov dword [0x40b15c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
jmp 0x401b7d
mov edx, 1
mov eax, 1
jmp 0x401d85
mov edx, 2
mov eax, 2
jmp 0x401d85
movzx ecx, byte [0x409138]
cmp byte [esi + 2], cl
jne 0x401d4f
mov edx, 3
mov eax, 3
jmp 0x401d85
mov dword [esp], ebx
call sym.unk_161
push eax
jmp 0x401a59