Function at 0x10011910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100d07a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.10007af0
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10058470
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10011aa3
cmp dword [ebp + 0x18], 0
je 0x10011a74
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x10011b42
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.B90BEDB7_CDC8_4BDF_9D05_34885651FDE7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
test eax, 0xffff0000
jne 0x100119b3
movzx eax, ax
push eax
call fcn.10007b90
jmp 0x100119bf
push 0x26
push str.B90BEDB7_CDC8_4BDF_9D05_34885651FDE7
call fcn.10003220
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp + 8]
push eax
call fcn.10002930
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1004fd90
add esp, 0xc
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 5
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011a00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.1000a350
mov edx, dword [ebp - 0x34]
or esi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011a3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10011a58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10011a74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
push str.LastRandDir
push str.RundllConfig
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
setne bl
jmp 0x10011aa5
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10011adb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011ad1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10011b4c
push edx
push ecx
call fcn.1006a15b
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x10011b25
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011b1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10011b51
push edx
push ecx
call fcn.1006a15b
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006a4da
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002c70
call fcn.10078889
call fcn.10078889
int3