Function at 0x100a6160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019fb8f
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10222354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0
push 0x101bcd70
lea ecx, [ebp - 0x10]
call fcn.1000ba00
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.10008000
movzx eax, al
test eax, eax
jne 0x100a64ca
mov dword [ebp - 0x18], 0
push 0x101bcd74
lea ecx, [ebp + 0xc]
call fcn.10007f90
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.1016bf8e
add esp, 0xc
test eax, eax
je 0x100a6214
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000b9e0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000ba80
mov eax, dword [ebp + 8]
jmp 0x100a64fd
mov byte [ebp - 0x14], 0xef
mov byte [ebp - 0x13], 0xbb
mov byte [ebp - 0x12], 0xbf
mov byte [ebp - 0x1c], 0
xor ecx, ecx
mov word [ebp - 0x1b], cx
mov byte [ebp - 0x19], cl
mov edx, dword [ebp - 0x18]
push edx
push 3
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.1016ca2a
add esp, 0x10
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1016c6e8
add esp, 0xc
push 2
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.1016c6e8
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
call fcn.1016c5f0
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1016bd74
add esp, 4
push 3
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.1016813b
add esp, 0xc
test eax, eax
jne 0x100a6381
push 0x101bcd7c
lea ecx, [ebp + 0xc]
call fcn.10007f90
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.1016bf8e
add esp, 0xc
test eax, eax
je 0x100a62ec
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000b9e0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000ba80
mov eax, dword [ebp + 8]
jmp 0x100a64fd
mov eax, dword [ebp - 0x20]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10165c5a
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1016c3eb
add esp, 4
test eax, eax
jne 0x100a635e
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1016bdf0
add esp, 0xc
test eax, eax
jne 0x100a633e
jmp 0x100a635e
mov edx, dword [ebp - 0x18]
push edx
call fcn.1016c41f
add esp, 4
test eax, eax
je 0x100a6350
jmp 0x100a635e
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.100240f0
jmp 0x100a6314
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1016bd74
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.101662ff
add esp, 4
jmp 0x100a64ca
mov dword [ebp - 0x28], 0
push 0x101bcd98
lea ecx, [ebp + 0xc]
call fcn.10007fa0
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.1016bf8e
add esp, 0xc
cmp dword [ebp - 0x28], 0
je 0x100a64ca
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
call fcn.10165c5a
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x38]
lea eax, [edx + edx + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10165c5a
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
mov eax, dword [ebp - 0x34]
push eax
call fcn.1016ca2a
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.1016bd74
add esp, 4
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x38]
mov byte [edx], 0
mov eax, dword [ebp - 0x38]
lea ecx, [eax + eax + 1]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x34]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100a649a
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.101662ff
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.101662ff
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000b9e0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000ba80
mov eax, dword [ebp + 8]
jmp 0x100a64fd
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.1000baa0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.101662ff
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.101662ff
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000b9e0
mov ecx, dword [ebp - 0x5c]
or ecx, 1
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000ba80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret