Function at 0x40f590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502517
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x548730]
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
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
sub esp, 8
mov eax, esp
mov dword [eax], 0x50c568
mov dword [eax + 4], 6
lea eax, [ebp - 0x28]
push eax
call fcn.0041f8e0
add esp, 0xc
mov dword [ebp - 4], 1
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x40f7b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.ADBlockMaster_tray.log
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push str._s_s
push eax
call fcn.00405060
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x40f7ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push esi
push str._s.on
push eax
mov byte [ebp - 4], 4
call fcn.00405060
mov edi, dword [ebp - 0x30]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f672
mov byte [ebx + 4], al
jmp 0x40f72f
push 0x28
mov byte [ebx + 4], 1
call fcn.00498a04
mov ebx, eax
mov dword [ebp - 0x34], eax
add esp, 4
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 5
test ebx, ebx
je 0x40f6e3
mov dword [ebx], vtable.Utils::LogAppender.0
mov ecx, esi
mov dword [ebx + 4], 0
xor eax, eax
mov byte [ebx + 8], 1
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 7
mov word [ebx + 0xc], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f6c0
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0xc]
call fcn.0040ab80
mov dword [ebx + 0x24], 0xffffffff
jmp 0x40f6e8
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
mov dword [ecx + 0x20], ebx
mov eax, dword [ebx]
mov ebx, dword [eax]
lea eax, [ebp - 0x70]
push eax
call fcn.0040f480
push str._____________________log_start_____________________________r_n
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
call fcn.0040e780
add esp, 0xc
mov ecx, dword [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call ebx
lea ecx, [ebp - 0x58]
call fcn.00406ef0
lea ecx, [ebp - 0x70]
call fcn.00406ef0
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f749
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40f75e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40f794
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f78a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f7c4
push edx
push ecx
call fcn.0049871a
add esp, 8
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.004989d0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404d00
push 0x80004005
call fcn.00404d00
call fcn.004dc439
int3