Function at 0x10011150
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 [0x1015050c]
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.1001ee60
mov edi, eax
push edi
mov ecx, dword [edi]
call dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x100112b4
mov dword [ebp - 4], 0
call fcn.10010ec0
mov ecx, eax
test ecx, ecx
je 0x10011582
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.0x100111c8
jmp dword [eax*4 + 0x1001158c]
push 0x10
push 0x10118b40
jmp 0x100111f1
push 0x10
push 0x10118b64
jmp 0x100111f1
push 0x11
push 0x10118b88
jmp 0x100111f1
push 0xf
push 0x10118bac
lea ecx, [ebp - 0x74]
call fcn.10005b40
mov esi, dword [ebp - 0x74]
push 0
push esi
push 0
call fcn.1001c6a0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10011225
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.10013d80
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.10013fa0
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 2
jb 0x1001126a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.10013d80
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.10010e30
mov ecx, eax
call fcn.1001d970
lea ecx, [ebp - 0x6c]
call fcn.10009330
xor eax, eax
jmp 0x10011566
call fcn.10010d10
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 0x1001130d
push esi
call fcn.100753b0
add esp, 4
test eax, eax
je 0x10011306
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10154bc0], eax
test eax, eax
jne 0x1001130d
xor edi, edi
jmp 0x10011548
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 0x10011337
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 [0x10154bc0]
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 0x1001136d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
test eax, eax
jne 0x1001143c
push eax
push 0x10118c30
push eax
call fcn.1001c6a0
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.10013d80
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 0x100113e6
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.10013d80
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.10010e30
mov ecx, eax
call fcn.1001d970
lea ecx, [ebp - 0x54]
call fcn.10009330
xor edi, edi
jmp 0x10011548
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 0x10011466
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 [0x10154bc0]
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 0x1001149c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x6d], 0
je 0x10011530
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.10013d80
lea eax, [ebp - 0x2c]
push 6
push eax
call fcn.10013fa0
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 9
jb 0x100114e9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x54]
call fcn.10013d80
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.10010e30
mov ecx, eax
call fcn.1001d970
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.10009330
call fcn.10010d10
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 0x10011564
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
iretd