Function at 0x100b20c0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2a56
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x10115034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xb8], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xbc], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x100b211a
mov edx, dword [esi]
jmp 0x100b211c
mov edx, esi
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x100b2139
xor ecx, ecx
jmp 0x100b214f
mov ecx, edx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b2140
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10001df0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1002f390
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne al
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0xa5], al
jb 0x100b21a0
push dword [ebp - 0x2c]
call ebx
mov al, byte [ebp - 0xa5]
add esp, 4
test al, al
je 0x100b24fc
cmp dword [ebp + 0x1c], 0
je 0x100b24fc
lea ecx, [esi + 0x18]
call fcn.100c6700
test al, al
je 0x100b21c9
push 0xffffffffffffffff
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], esp
push 0x100f6540
call fcn.10001ef0
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x100b21ec
mov eax, dword [esi]
jmp 0x100b21ee
mov eax, esi
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10001ef0
mov byte [ebp - 4], 0
call fcn.100aaf30
add esp, 0x30
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x100b2224
mov ecx, esi
call fcn.100b29a0
push 0
mov ecx, edi
call fcn.100068a0
jmp 0x100b251b
push 2
push 0
push eax
call dword [sym.imp.MSVCR120.dll_fseek]
mov esi, dword [ebp - 0xb0]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.MSVCR120.dll_rewind]
add esp, 4
lea esi, [edi + 1]
push esi
call fcn.100d0ba0
add esp, 4
mov dword [ebp - 0xac], eax
push esi
push 0
push eax
call sub.MSVCR120.dll_memset
mov esi, dword [ebp - 0xb0]
add esp, 0xc
push esi
push 1
push edi
push dword [ebp - 0xac]
call dword [sym.imp.MSVCR120.dll_fread]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
mov esi, dword [ebp - 0xac]
lea ecx, [ebp - 0x5c]
add esp, 0x14
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
push edi
push esi
call fcn.10006eb0
mov byte [ebp - 4], 3
test esi, esi
je 0x100b22c0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10006b20
lea eax, [ebp - 0x44]
push eax
call fcn.100b2550
mov ecx, dword [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.100b29a0
push 0x100e8573
lea ecx, [ebp - 0x74]
call fcn.100068a0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 0
je 0x100b2479
push 2
push 0
push 0x100f6548
lea ecx, [ebp - 0x44]
call fcn.100057f0
mov esi, eax
cmp esi, 0xffffffff
je 0x100b2479
push esi
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x44]
call fcn.10005560
push 1
push 0
push 0x100f654c
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.100057f0
mov edi, eax
lea ecx, [ebp - 0x8c]
push edi
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10005560
mov byte [ebp - 4], 7
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp - 0x2c]
push dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
push 0xffffffffffffffff
test eax, eax
je 0x100b243c
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x44]
call fcn.10005560
mov esi, eax
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x100b23e7
cmp dword [ebp - 0x30], 0x10
jb 0x100b23cc
push dword [ebp - 0x44]
call ebx
add esp, 4
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.10006750
cmp dword [ebp - 0x90], 0x10
jb 0x100b23fb
push dword [ebp - 0xa4]
call ebx
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x100b2409
push dword [ebp - 0x2c]
call ebx
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x100b2430
push dword [ebp - 0x8c]
call ebx
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x100b2316
jmp 0x100b2479
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10005560
push eax
lea ecx, [ebp - 0x74]
call fcn.100054a0
lea ecx, [ebp - 0xa4]
call fcn.10006900
lea ecx, [ebp - 0x2c]
call fcn.10006900
lea ecx, [ebp - 0x8c]
call fcn.10006900
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.100066e0
cmp dword [ebp - 0x60], 0x10
jb 0x100b2498
push dword [ebp - 0x74]
call ebx
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x100b24b8
push dword [ebp - 0x44]
call ebx
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jb 0x100b24d8
push dword [ebp - 0x5c]
call ebx
add esp, 4
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x100b24f8
push dword [ebp + 0xc]
call ebx
add esp, 4
mov eax, esi
jmp 0x100b252b
push 0
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push 0x100e856f
mov byte [edi], 0
call fcn.10006eb0
cmp dword [ebp + 0x20], 0x10
jb 0x100b2529
push dword [ebp + 0xc]
call ebx
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret 0x1c