Function at 0x100f6080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10106010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x120], ecx
cmp ebx, 0xc
jb 0x100f62b9
test ecx, ecx
je 0x100f6100
mov eax, dword [ebp - 0x120]
mov edx, dword [ecx + edi]
mov ecx, dword [ecx + edi + 4]
mov dword [ebp - 0x11c], edx
mov eax, dword [eax + edi + 8]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x118], ecx
mov eax, dword [eax + edi + 0xc]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x128]
jmp 0x100f61b0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add edx, edi
add ecx, edi
test eax, eax
je 0x100f6143
push 0
push ecx
push eax
call fcn.100b397b
add esp, 0xc
test eax, eax
jne 0x100f62b9
push dword [ebp - 0x124]
lea eax, [ebp - 0x11c]
push 0xc
push 1
push eax
call fcn.100b3b62
add esp, 0x10
cmp eax, 0xc
sete al
jmp 0x100f6196
mov eax, dword [esi + 0x82c]
test eax, eax
je 0x100f6166
lea edx, [ebp - 0x11c]
push edx
push 0xc
push 0
push ecx
push dword [esi + 0x804]
call eax
add esp, 0x14
jmp 0x100f6191
mov eax, dword [esi + 0x830]
test eax, eax
je 0x100f62b9
test edx, edx
je 0x100f62b9
lea ecx, [ebp - 0x11c]
push ecx
push 0xc
push edx
push dword [esi + 0x804]
call eax
add esp, 0x10
test eax, eax
setns al
test al, al
je 0x100f62b9
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
cmp ecx, 0xc
jb 0x100f62b9
cmp ecx, ebx
ja 0x100f62b9
cmp edx, 1
jne 0x100f61ca
test al, al
je 0x100f61e8
sub ebx, ecx
add edi, ecx
cmp ebx, 0xc
jb 0x100f62b9
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x120]
jmp 0x100f60b8
lea ebx, [ecx - 0xc]
cmp ebx, 0x108
ja 0x100f62b9
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x100f6219
add eax, 0xc
add eax, edi
push ebx
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.100ac500
add esp, 0xc
jmp 0x100f6246
push 0
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
mov eax, dword [ebp + 0x14]
add eax, 0xc
add eax, edi
push ebx
push eax
mov eax, dword [ebp + 0x10]
add eax, 0xc
add eax, edi
push eax
push dword [ebp - 0x124]
call fcn.100f58c0
test al, al
je 0x100f62b9
dec ebx
cmp ebx, 0x108
jae 0x100f6332
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
mov byte [ebp + ebx - 0x10c], 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jle 0x100f62b9
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10022030
mov edi, eax
add esp, 4
test edi, edi
je 0x100f62b9
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x100f62cc
push edi
call fcn.10022040
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a539a
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x814], 0
mov dword [esi + 0xc88], edi
jne 0x100f6309
mov eax, dword [esi + 0x808]
mov byte [esi + 0x814], 1
test eax, eax
jne 0x100f62f4
mov dword [esi + 0x818], eax
jmp 0x100f630f
push 9
push dword [esi + 0x804]
call eax
add esp, 8
mov dword [esi + 0x818], eax
jmp 0x100f630f
mov eax, dword [esi + 0x818]
test eax, eax
je 0x100f62b9
push edi
push dword [esi + 0x804]
call eax
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100a539a
mov esp, ebp
pop ebp
ret 0x14
call fcn.100a54dc
int3