Function at 0x416040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x28], 0
movzx eax, word [0x554718]
test eax, eax
jne 0x416287
mov dword [ebp - 0xc], 0
call fcn.00415eb0
test eax, eax
je 0x41612d
push 0x104
push 0x554718
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xc], eax
push 0x554718
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d0c0
push 0x52d138
lea ecx, [ebp - 0x10]
call fcn.0041d1c0
test eax, eax
je 0x4160cf
push str.AdPopBlocker.tpi
lea ecx, [ebp - 0x10]
call fcn.0041d1c0
test eax, eax
je 0x4160cf
push str.PopWndLog.exe
lea ecx, [ebp - 0x10]
call fcn.0041d1c0
test eax, eax
jne 0x4160dc
push 0x554718
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x416103
push str.AdPopWnd.dll
lea ecx, [ebp - 0x10]
call fcn.0041d1c0
test eax, eax
jne 0x416103
push 0x554718
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x554718
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x554718
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x554718
mov ecx, dword [ebp + 8]
call fcn.0041d0c0
lea ecx, [ebp - 0x10]
call fcn.0041d100
mov eax, dword [ebp + 8]
jmp 0x416297
push 0x104
push 0x554718
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xc], eax
push 0x5c
push 0x554718
call fcn.004162a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416165
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 2], dx
push 0x52d0c8
lea ecx, [ebp - 8]
call fcn.0041d0c0
cmp dword [ebp + 0xc], 0
jne 0x4161ac
lea ecx, [ebp - 8]
push ecx
push 0x554718
lea edx, [ebp - 0x1c]
push edx
call fcn.0041d250
add esp, 0xc
or dword [ebp - 0x28], 1
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4161ac
mov dword [ebp - 0x2c], 1
jmp 0x4161b3
mov dword [ebp - 0x2c], 0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x28]
and ecx, 1
je 0x4161cd
and dword [ebp - 0x28], 0xfffffffe
lea ecx, [ebp - 0x1c]
call fcn.0041d100
movzx edx, byte [ebp - 0x15]
test edx, edx
je 0x41627f
lea eax, [ebp - 0x14]
push eax
call fcn.004164d0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0041d2e0
test eax, eax
jle 0x416233
lea ecx, [ebp - 0x14]
call fcn.0041d2e0
cmp eax, 0x104
jge 0x416233
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0041bbc0
add esp, 0xc
or dword [ebp - 0x28], 2
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416233
mov dword [ebp - 0x30], 1
jmp 0x41623a
mov dword [ebp - 0x30], 0
mov cl, byte [ebp - 0x30]
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp - 0x28]
and edx, 2
je 0x416254
and dword [ebp - 0x28], 0xfffffffd
lea ecx, [ebp - 0x24]
call fcn.0041d100
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x416277
push 0x103
lea ecx, [ebp - 0x14]
call fcn.0041d2b0
push eax
push 0x554718
call fcn.004f75fa
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0041d100
lea ecx, [ebp - 8]
call fcn.0041d100
push 0x554718
mov ecx, dword [ebp + 8]
call fcn.0041d0c0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret