Function at 0x1001b1a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x10070ace
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x49c
xor eax, eax
push ebx
mov dword [esp + 0x26], eax
push ebp
mov dword [esp + 0x2e], eax
push esi
mov dword [esp + 0x36], eax
push edi
mov word [esp + 0x3e], ax
mov eax, dword [0x10085048]
xor edi, edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x30], di
mov dword [esp + 0x4b4], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov ebp, eax
mov dword [esp + 0x48], ebp
mov ebx, eax
mov dword [esp + 0x40], ebx
mov esi, dword [esp + 0x4bc]
mov byte [esp + 0x4b4], 5
cmp esi, edi
jne 0x1001b347
mov eax, dword [0x1008504c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [ebx - 0xc]
mov byte [esp + 0x4b4], 4
cmp ecx, eax
je 0x1001b245
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x1001b245
push esi
call fcn.1003c010
add esp, 4
mov eax, dword [0x1008504c]
lea edx, [ebp - 0xc]
cmp edx, eax
mov byte [esp + 0x4b4], 3
je 0x1001b26c
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x1001b26c
push esi
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x1008504c]
mov byte [esp + 0x4b4], 2
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001b29f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1001b29f
mov edx, dword [esp + 0x28]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x2c]
mov edx, dword [0x1008504c]
mov byte [esp + 0x4b4], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001b2d2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1001b2d2
mov edx, dword [esp + 0x2c]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x1008504c]
mov byte [esp + 0x4b4], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001b305
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1001b305
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x1008504c]
mov dword [esp + 0x4b4], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001b33b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1001b33b
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x4c0]
jmp 0x1001b946
lea ecx, [esp + 0x6c]
call fcn.1001d780
lea ecx, [esp + 0x6c]
mov byte [esp + 0x4b4], 6
call fcn.1001d870
mov eax, dword [esi]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x24]
push ecx
push edx
push 1
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x1001b852
mov ebx, 8
jmp 0x1001b384
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push 0x10076f24
mov ecx, dword [eax]
push edi
push edi
push eax
mov byte [esp + 0x4c8], 7
call dword [ecx + 0x24]
cmp eax, edi
jge 0x1001b3bd
mov eax, dword [esp + 0x18]
mov byte [esp + 0x4b4], 6
cmp eax, edi
jmp 0x1001b7a2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push edi
mov word [esp + 0x34], bx
mov edx, dword [eax]
push ecx
push str.FriendlyName
push eax
call dword [edx + 0xc]
cmp eax, edi
jge 0x1001b3fa
mov eax, dword [esp + 0x18]
mov byte [esp + 0x4b4], 6
cmp eax, edi
je 0x1001b82d
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x1001b82d
mov eax, dword [esp + 0x38]
mov ecx, dword [0x10085048]
test eax, eax
mov edi, eax
mov dword [esp + 0x14], ecx
je 0x1001b44c
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x1001b448
lea esi, [eax + eax]
lea ecx, [esp + 0x14]
push esi
call fcn.10001dc0
test eax, eax
je 0x1001b448
mov edx, dword [esp + 0x14]
inc esi
push esi
push edi
push edx
call fcn.1001b960
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.10002750
mov eax, dword [esp + 0x38]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call ebp
mov eax, dword [0x10076f04]
mov ecx, dword [0x10076f08]
mov edx, dword [0x10076f0c]
mov dword [esp + 0x4c], eax
mov eax, dword [0x10076f10]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x10085048]
mov word [esp + 0x5c], bx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push 0
push ecx
mov edx, dword [eax]
push 0x100866d4
push eax
mov byte [esp + 0x4c4], 9
call dword [edx + 0xc]
test eax, eax
jl 0x1001b7aa
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x4c]
push edx
push eax
call fcn.100196d0
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
mov edi, eax
je 0x1001b4d8
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
jmp 0x1001b4da
xor eax, eax
lea esi, [eax + eax]
lea ecx, [esp + 0x10]
push esi
call fcn.10001d60
test eax, eax
je 0x1001b506
mov ecx, dword [esp + 0x10]
inc esi
push esi
push edi
push ecx
call fcn.1001b960
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.10002750
mov edx, dword [esp + 0x64]
push edx
call ebp
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x6c]
push eax
call fcn.1001d8e0
test eax, eax
je 0x1001b589
mov eax, dword [esp + 0x10]
mov edx, dword [0x1008504c]
mov byte [esp + 0x4b4], bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001b555
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001b555
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x1008504c]
mov byte [esp + 0x4b4], 7
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001b794
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001b794
jmp 0x1001b784
mov dl, byte [0x1009bcc4]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x9d]
mov byte [esp + 0x9c], dl
mov byte [esp + 0x3a8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3a9]
mov byte [esp + 0x2a4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2a5]
mov byte [esp + 0x1a0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a1]
mov byte [esp + 0x7c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x7d]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1001b6ba
lea edx, [esp + 0x9c]
push 0x104
push edx
push eax
call fcn.10018e50
add esp, 0xc
test eax, eax
je 0x1001b6ba
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1001b694
lea ecx, [esp + 0x3a8]
push 0x104
lea edx, [esp + 0xa0]
push ecx
push edx
call fcn.10018d60
lea eax, [esp + 0x1ac]
lea ecx, [esp + 0x2b0]
push eax
lea edx, [esp + 0xac]
push ecx
push edx
call fcn.10018ed0
mov eax, dword [esp + 0x28]
push eax
call fcn.10019710
add esp, 0x1c
mov ebp, eax
jmp 0x1001b6ba
mov edi, 0x100866d0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1a0]
lea edx, [esp + 0x2a4]
push ecx
lea eax, [esp + 0x3ac]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x20]
push ecx
push ebp
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
lea edx, [esp + 0x40]
push 0x100866a4
push edx
call fcn.10003bb0
mov eax, dword [esp + 0x48]
add esp, 0x28
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.1001a600
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1001b71f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x1008504c]
mov dword [esp + 0x24], 0
mov byte [esp + 0x4b4], bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x1001b75d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001b75d
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x1008504c]
mov byte [esp + 0x4b4], 7
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001b794
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001b794
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x18]
mov byte [esp + 0x4b4], 6
test eax, eax
je 0x1001b82d
jmp 0x1001b827
mov eax, dword [esp + 0x10]
mov ecx, dword [0x1008504c]
mov byte [esp + 0x4b4], bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x1001b7e0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001b7e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x1008504c]
mov byte [esp + 0x4b4], 7
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x1001b817
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001b817
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.1003c010
add esp, 4
mov eax, dword [esp + 0x18]
mov byte [esp + 0x4b4], 6
test eax, eax
je 0x1001b82d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x4bc]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x1001b382
mov ebx, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push 0x2d
push edx
call fcn.10019be0
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 8
mov byte [esp + 0x4b4], 5
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x4c0]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [edx - 8]
lea ecx, [esp + 0x6c]
lea edi, [edx + eax]
call fcn.1001d7c0
mov ecx, dword [0x1008504c]
lea eax, [ebx - 0xc]
cmp eax, ecx
mov byte [esp + 0x4b4], 4
je 0x1001b8ce
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001b8ce
push esi
call fcn.1003c010
add esp, 4
mov esi, dword [esp + 0x48]
mov eax, dword [0x1008504c]
mov byte [esp + 0x4b4], 3
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x1001b8fd
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001b8fd
push esi
call fcn.1003c010
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x4b4], 2
call fcn.10001e50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4b4], 1
call fcn.10001e50
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b4], 0
call fcn.10001e50
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4b4], 0xffffffff
call fcn.10001e50
mov eax, edi
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4a8
ret