Function at 0x10011740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10105033
mov eax, dword fs:[0]
push eax
sub esp, 0x228
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
push dword [0x1014f198]
lea ecx, [ebp - 0x228]
call fcn.100044e0
mov dword [ebp - 4], 0
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 edi, [eax + 0x10]
mov dword [ebp - 0x22c], edi
mov byte [ebp - 4], 1
call fcn.10010ec0
mov ecx, eax
test ecx, ecx
je 0x10011ad4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001183d
call fcn.10010ec0
mov ecx, eax
test ecx, ecx
je 0x10011ade
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.100108a0
mov edx, dword [ebp - 0x21c]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011916
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10011916
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008e9b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10154bc0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10010ec0
mov ecx, eax
test ecx, ecx
je 0x10011ae8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x21c]
call fcn.10004810
test al, al
jne 0x100118d2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100118b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10005b40
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.100108a0
mov edx, dword [ebp - 0x21c]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011910
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
push dword [ebp - 0x228]
push str.instnew
push 0
call fcn.10010e30
mov ecx, eax
call fcn.1001d370
lea eax, [ebp - 0x230]
push eax
call fcn.10010d10
mov ecx, eax
call fcn.1000b240
mov dword [ebp - 0x21c], eax
mov edx, dword [eax]
mov byte [ebp - 4], 6
cmp dword [edx - 4], 1
jle 0x10011966
push dword [edx - 0xc]
mov ecx, eax
call fcn.100052e0
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
sub esp, 0x18
xor ecx, ecx
mov eax, esp
mov dword [ebp - 0x234], esp
mov dword [ebp - 0x224], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x21c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011995
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x224]
push edx
call fcn.1000aa60
mov byte [ebp - 4], 7
call fcn.10010e30
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1001dc70
mov edx, dword [ebp - 0x230]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100119ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x10011a04
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
call fcn.100052e0
mov esi, dword [ebp - 0x220]
sub esp, 0x18
mov ecx, esi
mov edx, esp
mov dword [ebp - 0x234], esp
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x224], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011a30
sub ecx, dword [ebp - 0x224]
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.1000aa60
mov byte [ebp - 4], 8
call fcn.10010e30
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001dbb0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10011a7b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10011a96
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10011ab8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80004005
call fcn.100047f0
push 0x80004005
call fcn.100047f0
int3