Function at 0x40f3a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ff87
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4986f4]
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], 0x475278
mov dword [eax + 4], 6
lea eax, [ebp - 0x28]
push eax
call fcn.0041f500
add esp, 0xc
mov dword [ebp - 4], 1
call fcn.00404fc0
mov ecx, eax
test ecx, ecx
je 0x40f5c0
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.00404ed0
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.00404fc0
mov ecx, eax
test ecx, ecx
je 0x40f5ca
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.00404ed0
mov edi, dword [ebp - 0x30]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f482
mov byte [ebx + 4], al
jmp 0x40f53f
push 0x28
mov byte [ebx + 4], 1
call fcn.00427241
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 0x40f4f3
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 0x40f4d0
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0xc]
call fcn.0040a9f0
mov dword [ebx + 0x24], 0xffffffff
jmp 0x40f4f8
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.0040f290
push str._____________________log_start_____________________________r_n
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
call fcn.0040e590
add esp, 0xc
mov ecx, dword [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call ebx
lea ecx, [ebp - 0x58]
call fcn.00406d50
lea ecx, [ebp - 0x70]
call fcn.00406d50
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f559
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 0x40f56e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40f5a4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f59a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d4
push edx
push ecx
call fcn.00426f52
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.00427208
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b70
push 0x80004005
call fcn.00404b70
call fcn.0044b669
int3