Function at 0x100adcc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0xa4], ecx
push 0x100cec88
mov eax, dword [ebp + 8]
push eax
call fcn.100834b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100add0f
call fcn.10083e69
mov ecx, dword [eax]
push ecx
call fcn.100861a8
add esp, 4
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x20
call fcn.10004a90
xor al, al
jmp 0x100adfa8
push 2
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10084049
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call fcn.10084e8f
add esp, 4
mov dword [ebp - 0x78], eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.10084049
add esp, 0xc
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
cmp dword [ebp - 0x78], 2
jle 0x100add60
mov edx, dword [ebp - 4]
push edx
push 1
push 2
lea eax, [ebp - 8]
push eax
call fcn.1007ceb0
add esp, 0x10
movzx ecx, byte [ebp - 8]
cmp ecx, 0xff
jne 0x100adee6
movzx edx, byte [ebp - 7]
cmp edx, 0xfe
jne 0x100adee6
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x3c]
or ecx, 1
mov edx, dword [ebp - 0xa4]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 0x78]
cdq
sub eax, edx
sar eax, 1
sub eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100791e9
add esp, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0x78]
sub edx, 2
push edx
mov eax, dword [ebp - 0x84]
push eax
call fcn.1007ceb0
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
mov word [eax + edx*2], cx
push 0
mov ecx, dword [ebp - 0x84]
push ecx
push 0
call fcn.100a8600
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
add edx, 1
push edx
call fcn.100791e9
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x88]
push eax
call fcn.100a8600
add esp, 0xc
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
push edx
call fcn.1007af67
add esp, 4
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0xa4]
add ecx, 4
call fcn.10001e40
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
push eax
call fcn.1007af67
add esp, 4
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
push str.BOM___d_wide_chars_to__d_bytes
lea eax, [ebp - 0x70]
push eax
call fcn.1007b736
add esp, 0x10
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0xa4]
add ecx, 0x20
call fcn.10004a90
mov edx, dword [ebp - 4]
push edx
call fcn.1007cb77
add esp, 4
mov ecx, dword [ebp - 0xa4]
call fcn.100adac0
jmp 0x100adfa8
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x3c]
and ecx, 0xfffffffe
mov edx, dword [ebp - 0xa4]
mov dword [edx + 0x3c], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.10084049
add esp, 0xc
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.100791e9
add esp, 4
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.1007ceb0
add esp, 0x10
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0xa4]
add ecx, 4
call fcn.10001e40
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
push eax
call fcn.1007af67
add esp, 4
mov ecx, dword [ebp - 0x78]
push ecx
push 0x100cecb0
lea edx, [ebp - 0x70]
push edx
call fcn.1007b736
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x20
call fcn.10004a90
mov ecx, dword [ebp - 4]
push ecx
call fcn.1007cb77
add esp, 4
mov ecx, dword [ebp - 0xa4]
call fcn.100adac0
mov esp, ebp
pop ebp
ret 4