Function at 0x10011180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10104f61
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10150440]
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 dword [ebp - 0x78], 0
call fcn.1001ee40
mov edi, eax
push edi
mov ecx, dword [edi]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x100112e4
mov dword [ebp - 4], 0
call fcn.10010ef0
mov ecx, eax
test ecx, ecx
je 0x100115b2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], eax
lea eax, [ebx - 1]
cmp eax, 3
ja case.default.0x100111f8
jmp dword [eax*4 + 0x100115bc]
push 0x10
push 0x10118b68
jmp 0x10011221
push 0x10
push 0x10118b8c
jmp 0x10011221
push 0x11
push 0x10118bb0
jmp 0x10011221
push 0xf
push 0x10118bd4
lea ecx, [ebp - 0x74]
call fcn.10005b40
mov esi, dword [ebp - 0x74]
push 0
push esi
push 0
call fcn.1001c6c0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10011255
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
push 0x11
push str.ex_ary_errcode_
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
call fcn.10013df0
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.10014010
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 2
jb 0x1001129a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.10013df0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.10009330
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push 0
cmovae eax, dword [ebp - 0x6c]
push 0
push 1
push eax
push str.fail
call fcn.10010e60
mov ecx, eax
call fcn.1001d990
lea ecx, [ebp - 0x6c]
call fcn.10009330
xor eax, eax
jmp 0x10011596
call fcn.10010d40
mov ecx, eax
call fcn.1000afe0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10004950
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x7c], esi
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x1001133d
push esi
call fcn.100753b0
add esp, 4
test eax, eax
je 0x10011336
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10154af0], eax
test eax, eax
jne 0x1001133d
xor edi, edi
jmp 0x10011578
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x6d]
call fcn.1000f770
mov dword [ebp - 0x78], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
cmp dword [ecx - 4], 1
jle 0x10011367
push dword [ecx - 0xc]
mov ecx, eax
call fcn.100052e0
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov eax, dword [edi]
push ecx
push 0xcb
push dword [0x10154af0]
push edi
call dword [eax + 4]
mov edx, dword [ebp - 0x74]
mov ecx, ebx
mov dword [ebp - 0x78], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001139d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
test eax, eax
jne 0x1001146c
push eax
push 0x10118c58
push eax
call fcn.1001c6c0
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
push 0x11
push str.ex_ary_errcode_
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.10013df0
lea eax, [ebp - 0x12]
push 5
push eax
call fcn.1000f4f0
mov ecx, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x6c], ax
add esp, 8
lea eax, [ebp - 0x12]
mov edi, 7
mov dword [ebp - 0x58], edi
cmp ecx, eax
je 0x10011416
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.1000aa60
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
cmp edi, 8
mov byte [ebp - 4], 6
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x54]
push edx
push eax
call fcn.10013df0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.10009330
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push 0
cmovae eax, dword [ebp - 0x54]
push 0
push 1
push eax
push str.fail
call fcn.10010e60
mov ecx, eax
call fcn.1001d990
lea ecx, [ebp - 0x54]
call fcn.10009330
xor edi, edi
jmp 0x10011578
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x6d]
call fcn.1000f800
mov dword [ebp - 0x78], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 7
cmp dword [ecx - 4], 1
jle 0x10011496
push dword [ecx - 0xc]
mov ecx, eax
call fcn.100052e0
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov eax, dword [edi]
push ecx
push 0x131
push dword [0x10154af0]
push edi
call dword [eax + 0xc]
mov edx, dword [ebp - 0x74]
test eax, eax
mov byte [ebp - 4], 3
mov eax, ebx
sete byte [ebp - 0x6d]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100114cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x6d], 0
je 0x10011560
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
push 0x11
push str.ex_ary_errcode_
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.10013df0
lea eax, [ebp - 0x2c]
push 6
push eax
call fcn.10014010
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 9
jb 0x10011519
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x54]
call fcn.10013df0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.10009330
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push 0
cmovae eax, dword [ebp - 0x54]
push 0
push 1
push eax
push str.fail
call fcn.10010e60
mov ecx, eax
call fcn.1001d990
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.10009330
call fcn.10010d40
mov ecx, eax
call fcn.1000b870
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0x54]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10011594
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 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 - 0x10]
xor ecx, ebp
call fcn.10073638
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100047f0
call dword [ecx]
add dword [eax], edx
or byte [edx], dl
add dword [eax], edx
adc dword [edx], edx
add dword [eax], edx
sbb dl, byte [edx]
add dword [eax], edx
int3