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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f2f66
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x1012d034]
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 0x100bf09a
mov edx, dword [esi]
jmp 0x100bf09c
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 0x100bf0b9
xor ecx, ecx
jmp 0x100bf0cf
mov ecx, edx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bf0c0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10001e10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1003ad30
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 0x100bf120
push dword [ebp - 0x2c]
call ebx
mov al, byte [ebp - 0xa5]
add esp, 4
test al, al
je 0x100bf47c
cmp dword [ebp + 0x1c], 0
je 0x100bf47c
lea ecx, [esi + 0x18]
call fcn.100d5ff0
test al, al
je 0x100bf149
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 0x1010b44c
call fcn.10001f10
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x100bf16c
mov eax, dword [esi]
jmp 0x100bf16e
mov eax, esi
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10001f10
mov byte [ebp - 4], 0
call fcn.100b68b0
add esp, 0x30
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x100bf1a4
mov ecx, esi
call fcn.100bf920
push 0
mov ecx, edi
call fcn.10007b40
jmp 0x100bf49b
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.100e0c76
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.100080d0
mov byte [ebp - 4], 3
test esi, esi
je 0x100bf240
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.10007d40
lea eax, [ebp - 0x44]
push eax
call fcn.100bf4d0
mov ecx, dword [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.100bf920
push 0x100f9835
lea ecx, [ebp - 0x74]
call fcn.10007b40
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 0
je 0x100bf3f9
push 2
push 0
push 0x1010b454
lea ecx, [ebp - 0x44]
call fcn.10006c90
mov esi, eax
cmp esi, 0xffffffff
je 0x100bf3f9
push esi
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x44]
call fcn.10006a00
push 1
push 0
push 0x1010b458
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.10006c90
mov edi, eax
lea ecx, [ebp - 0x8c]
push edi
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10006a00
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 0x100bf3bc
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x44]
call fcn.10006a00
mov esi, eax
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x100bf367
cmp dword [ebp - 0x30], 0x10
jb 0x100bf34c
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.100079f0
cmp dword [ebp - 0x90], 0x10
jb 0x100bf37b
push dword [ebp - 0xa4]
call ebx
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x100bf389
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 0x100bf3b0
push dword [ebp - 0x8c]
call ebx
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x100bf296
jmp 0x100bf3f9
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10006a00
push eax
lea ecx, [ebp - 0x74]
call fcn.10006940
lea ecx, [ebp - 0xa4]
call fcn.10007ba0
lea ecx, [ebp - 0x2c]
call fcn.10007ba0
lea ecx, [ebp - 0x8c]
call fcn.10007ba0
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.10007960
cmp dword [ebp - 0x60], 0x10
jb 0x100bf418
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 0x100bf438
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 0x100bf458
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 0x100bf478
push dword [ebp + 0xc]
call ebx
add esp, 4
mov eax, esi
jmp 0x100bf4ab
push 0
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push 0x100f980f
mov byte [edi], 0
call fcn.100080d0
cmp dword [ebp + 0x20], 0x10
jb 0x100bf4a9
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.100ebd7b
mov esp, ebp
pop ebp
ret 0x1c