Function at 0x100a9d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a9ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1022c684]
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 0x101c7b68
lea ecx, [ebp - 0x10]
call fcn.10005d80
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.10004400
movzx eax, al
test eax, eax
jne 0x100aa0aa
mov dword [ebp - 0x18], 0
push 0x101c7b6c
lea ecx, [ebp + 0xc]
call fcn.10004390
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.101755ae
add esp, 0xc
test eax, eax
je 0x100a9df4
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.10005d60
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005e00
mov eax, dword [ebp + 8]
jmp 0x100aa0dd
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.10175ea6
add esp, 0x10
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10175b64
add esp, 0xc
push 2
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.10175b64
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
call fcn.10175a6c
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10175394
add esp, 4
push 3
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.101724f3
add esp, 0xc
test eax, eax
jne 0x100a9f61
push 0x101c7b74
lea ecx, [ebp + 0xc]
call fcn.10004390
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.101755ae
add esp, 0xc
test eax, eax
je 0x100a9ecc
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.10005d60
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005e00
mov eax, dword [ebp + 8]
jmp 0x100aa0dd
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.1016f15a
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.10175867
add esp, 4
test eax, eax
jne 0x100a9f3e
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10175410
add esp, 0xc
test eax, eax
jne 0x100a9f1e
jmp 0x100a9f3e
mov edx, dword [ebp - 0x18]
push edx
call fcn.1017589b
add esp, 4
test eax, eax
je 0x100a9f30
jmp 0x100a9f3e
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.10025620
jmp 0x100a9ef4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10175394
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.10170335
add esp, 4
jmp 0x100aa0aa
mov dword [ebp - 0x28], 0
push 0x101c7b90
lea ecx, [ebp + 0xc]
call fcn.100043a0
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.101755ae
add esp, 0xc
cmp dword [ebp - 0x28], 0
je 0x100aa0aa
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
call fcn.1016f15a
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.1016f15a
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.10175ea6
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10175394
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 0x100aa07a
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10170335
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.10170335
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.10005d60
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005e00
mov eax, dword [ebp + 8]
jmp 0x100aa0dd
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10005e20
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.10170335
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.10170335
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.10005d60
mov ecx, dword [ebp - 0x5c]
or ecx, 1
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005e00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret