Function at 0x10095b5f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da4ec
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100eedbc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
call fcn.100949f4
mov esi, eax
shr eax, 0x1f
test al, al
jne 0x10095bb0
mov edi, dword [ebp - 0x30]
test edi, edi
jne 0x10095bd4
mov esi, 0x8000ffff
lea ecx, [ebp - 0x30]
call fcn.10095fc6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c0f05
leave
ret
mov eax, dword [ebx + 0x24]
lea edx, [ebx + 0x24]
or dword [ebp - 0x2c], 0xffffffff
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x14], eax
xor al, al
mov dword [ebp - 0x3c], 0xea60
mov byte [ebp - 0x1d], al
call fcn.10096294
mov esi, dword [eax]
and dword [eax], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x10095c17
and dword [ebp - 0x38], 0
push eax
call fcn.100960e0
push ecx
mov eax, esp
mov dword [eax], esi
and dword [ebp - 4], 0
test esi, esi
je 0x10095c37
mov eax, dword [esi]
push esi
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x100f1370]
call ebx
mov ebx, dword [ebp - 0x34]
mov ecx, edi
call fcn.100a9153
lea edx, [ebx + 0x24]
lea ecx, [ebp - 0x28]
call fcn.10096294
mov ebx, dword [eax]
lea ecx, [ebx + 4]
neg ebx
sbb ebx, ebx
and dword [eax], 0
mov eax, dword [ebp - 0x28]
and ebx, ecx
mov dword [ebp - 0x24], ebx
test eax, eax
je 0x10095c6b
and dword [ebp - 0x28], 0
push eax
call fcn.100960e0
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10095c8e
mov eax, dword [ebx]
push ebx
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x100f1370]
call ebx
mov ebx, dword [ebp - 0x24]
mov ecx, edi
call fcn.100a920a
mov dword [ebp - 4], 2
test ebx, ebx
je 0x10095cb0
mov eax, dword [ebx]
push ebx
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x100f1370]
call ebx
push 3
pop ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x10095cca
mov eax, dword [esi]
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100f1370]
call esi
or dword [ebp - 4], 0xffffffff
push ebx
mov ebx, dword [ebp - 0x34]
push dword [ebx + 0x28]
push 0xffffffffffffffff
call fcn.100aa266
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x10095d7f
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10095d1c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10028ea4
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10032dc9
call fcn.100380d6
mov ecx, dword [ebx + 0x28]
call fcn.100a759e
mov esi, eax
test esi, esi
jns 0x10095d56
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10095d83
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10028f44
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10032dc9
call fcn.100380d6
jmp 0x10095d83
or dword [ebp - 0x3c], 0xffffffff
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x10095d83
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10028f0c
push eax
push ecx
push ecx
mov edx, 0x100332b4
call fcn.10038093
jmp 0x10095d83
or dword [ebp - 0x3c], 0xffffffff
push edi
mov ecx, ebx
call fcn.10094ef4
mov esi, eax
test esi, esi
jns 0x10095dbb
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10095dbb
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10028f98
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10032dc9
call fcn.100380d6
mov ecx, ebx
call fcn.100950f0
mov esi, eax
test esi, esi
jns 0x10095df4
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10095df2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10028f78
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10032dc9
call fcn.100380d6
xor esi, esi
mov eax, dword [ebp - 0x2c]
push 1
push dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10095e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10095e52
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10028fb0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10032dc9
call fcn.100380d6
test esi, esi
js 0x10095bb0
cmp ebx, 3
jae 0x10095efd
mov eax, ebx
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x10095f34
mov bl, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x34]
push edi
call fcn.10094ef4
mov esi, eax
test esi, esi
jns 0x10095eae
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10095eac
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10028f98
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push ecx
push ecx
mov edx, 0x10032dc9
call fcn.100380d6
xor esi, esi
mov eax, dword [ebp - 0x2c]
test bl, bl
je 0x10095df7
mov ecx, dword [ebp - 0x34]
call fcn.100950f0
mov esi, eax
test esi, esi
jns 0x10095ef3
call fcn.10045373
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10095ef1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x10028f78
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
push ecx
push ecx
mov edx, 0x10032dc9
call fcn.100380d6
xor esi, esi
xor al, al
mov byte [ebp - 0x1d], al
jmp 0x10095df4
mov eax, dword [ebp - 0x2c]
cmp ebx, 0x80
jb 0x10095f13
mov dword [ebp - 0x2c], eax
cmp ebx, 0x83
jb 0x10095f49
cmp ebx, 0xc0
je 0x10095f49
cmp ebx, 0x102
jne 0x10095e68
mov bl, 1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x1d], bl
jmp 0x10095e73
cmp eax, 1
je 0x10095eb9
cmp eax, 2
je 0x10095f49
mov bl, byte [ebp - 0x1d]
mov byte [ebp - 0x1d], bl
jmp 0x10095eb1
lea ecx, [ebp - 0x30]
call fcn.10095fc6
xor eax, eax
jmp 0x10095bba