Function at 0x1001671f
Capabilities:
Check if file exists

Disassembly:
push 0x4c
mov eax, 0x10036506
call fcn.1003265b
lea eax, [ebp - 0x34]
push eax
call fcn.10011e75
mov edi, eax
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x34]
add ebx, 0x30
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1001675e
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
jmp 0x100167c7
mov eax, dword [edi]
sub eax, 0x10
call fcn.100283fd
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi + 4]
lea eax, [ebp - 0x14]
call fcn.10011003
push dword [ebx]
lea eax, [ebp - 0x14]
call fcn.10011003
push dword [ebp - 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x100167b6
lea eax, [ebp - 0x14]
mov edi, ebx
call fcn.1001ea8d
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10028460
jmp 0x100167cf
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10028460
xor al, al
test al, al
je 0x10016928
push dword [ebx]
push 0x100047cc
push 4
pop edi
push edi
call fcn.1000b93e
mov eax, dword [ebp - 0x30]
add esp, 0xc
add eax, 0xfffffff0
call fcn.10028460
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.10028460
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
push esi
push 0x80
push 3
push 1
mov dword [ebp - 4], edi
mov eax, dword [ebx]
push SysReAllocStringLen
push eax
lea edi, [ebp - 0x2c]
call fcn.10011003
cmp eax, esi
jge 0x100168bd
lea eax, [ebp - 0x1c]
push eax
mov edi, 0x10003bd8
call fcn.1001e8e8
mov dword [ebp + 0xc], eax
push 0x10004e24
lea eax, [ebp - 0x14]
push eax
mov edi, ebx
mov byte [ebp - 4], 5
call fcn.1001f143
mov byte [ebp - 4], 6
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1000ca39
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10028460
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10028460
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000cac2
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x34]
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 4]
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10028460
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000d170
push 0x100382a0
lea eax, [ebp - 0x58]
push eax
call fcn.10011003
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.10010b11
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 2
push 0x449
add esi, 4
push dword [esi]
mov dword [ebp - 0x38], 0x1001698a
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
je 0x1001690d
push dword [ebp - 0x2c]
call edi
mov dword [ebp - 0x2c], ebx
push ebx
push esi
xor eax, eax
call fcn.10011003
cmp dword [ebp - 0x2c], ebx
je 0x10016920
push dword [ebp - 0x2c]
call edi
call fcn.10032709
ret 8
push ebx
lea eax, [ebp - 0x20]
push eax
call fcn.1000c9bb
mov edi, 0x10006e38
mov dword [ebp - 0x20], edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.1000cb96
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov edx, dword [esi]
push eax
push 0
mov ecx, esi
call dword [edx + 4]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10028460
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000d1b4
mov dword [ebp - 0x18], edi
push 0x10038364
lea eax, [ebp - 0x18]
jmp 0x100168b7