Function at 0x42ff00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c7e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4fcb54]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
mov edi, ecx
mov esi, edx
push 0x4e43e0
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
call fcn.004a69d8
mov ebp, eax
xor eax, eax
add esp, 8
cmp ebp, eax
jne 0x42ffc5
cmp esi, eax
je 0x42ffbe
lea ecx, [esp + 0x1c]
push ecx
call fcn.00431800
add esp, 4
push eax
mov ecx, esi
mov dword [esp + 0xb4], 0
call fcn.004028f0
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ffbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x430209
cmp ebx, eax
je 0x42ffd1
mov ecx, dword [ebx]
mov dword [esp + 0x18], ecx
jmp 0x42ffd5
mov dword [esp + 0x18], eax
mov ecx, edi
mov byte [esp + 0x2c], al
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov word [esp + 0x3d], ax
mov byte [esp + 0x3f], al
call fcn.004024c0
push 2
push 0
push ebp
call fcn.004a6a72
push ebp
call fcn.004a6c8f
push 0
push 0
push ebp
mov esi, eax
call fcn.004a6a72
mov ebx, 3
add esp, 0x1c
cmp esi, ebx
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
jge 0x43003a
test esi, esi
mov ebx, esi
je 0x43017b
push ebp
push 1
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.004a6f99
mov al, byte [esp + 0x24]
add esp, 0x10
cmp al, 0xff
jne 0x430138
cmp byte [esp + 0x15], 0xfe
jne 0x43017b
mov eax, dword [str.UTF_16LE_BOM_]
or dword [esp + 0x18], 1
mov ecx, dword [0x4e43e8]
mov edx, dword [0x4e43ec]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4e43f0]
sub esi, 2
cmp ebx, 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
jle 0x4300a2
push 0
push 2
push ebp
call fcn.004a6a72
add esp, 0xc
mov eax, esi
cdq
sub eax, edx
sar eax, 1
xor ebx, ebx
test esi, esi
mov dword [esp + 0x24], eax
je 0x43011a
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004841f2
push ebp
push 1
mov edi, eax
push esi
push edi
call fcn.004a6f99
mov eax, dword [esp + 0x38]
mov word [edi + eax*2], bx
push ebx
mov eax, edi
xor ecx, ecx
call fcn.00430c60
mov esi, dword [esp + 0x40]
add esp, 0x18
mov ebx, eax
push ebx
mov ecx, esi
call fcn.00402230
mov ecx, eax
push ebx
mov eax, edi
call fcn.00430c60
push edi
call fcn.004841f7
add esp, 8
push ebx
mov ecx, esi
call fcn.00415dc0
mov eax, dword [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x4c]
push str._s_d_wide_chars_to__d_bytes
push edx
call fcn.004a6fb4
add esp, 0x14
jmp 0x4301de
cmp al, 0xef
jne 0x43017b
cmp byte [esp + 0x15], 0xbb
jne 0x43017b
cmp byte [esp + 0x16], 0xbf
jne 0x43017b
mov edx, dword [str.UTF_8_BOM_]
mov eax, dword [0x4e4414]
mov ecx, dword [0x4e4418]
or dword [esp + 0x18], 4
mov dword [esp + 0x2c], edx
mov dl, byte [0x4e441c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov byte [esp + 0x38], dl
sub esi, 3
jmp 0x43018d
and dword [esp + 0x18], 0xfffffffa
push 0
push 0
push ebp
call fcn.004a6a72
add esp, 0xc
test esi, esi
je 0x4301c6
mov eax, dword [edi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x4301af
push esi
mov ecx, edi
call fcn.00402260
mov eax, dword [edi]
push ebp
push 1
push esi
push eax
call fcn.004a6f99
add esp, 0x10
push esi
mov ecx, edi
call fcn.00415dc0
push esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x48]
push str._s_d_bytes
push edx
call fcn.004a6fb4
add esp, 0x10
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4301f0
lea eax, [esp + 0x40]
push eax
call fcn.004023b0
push ebp
call fcn.004a70dc
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x430207
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004a3135
add esp, 0xa0
ret