Function at 0x410780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b577
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x554760]
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], 0x5165b8
mov dword [eax + 4], 6
lea eax, [ebp - 0x28]
push eax
call fcn.00424bf0
add esp, 0xc
mov dword [ebp - 4], 1
call fcn.004051b0
mov ecx, eax
test ecx, ecx
je 0x4109a0
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.004050c0
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.004051b0
mov ecx, eax
test ecx, ecx
je 0x4109aa
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.004050c0
mov edi, dword [ebp - 0x30]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410862
mov byte [ebx + 4], al
jmp 0x41091f
push 0x28
mov byte [ebx + 4], 1
call fcn.004a02d4
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 0x4108d3
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 0x4108b0
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0xc]
call fcn.0040abe0
mov dword [ebx + 0x24], 0xffffffff
jmp 0x4108d8
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.00410670
push str._____________________log_start_____________________________r_n
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
call fcn.0040f970
add esp, 0xc
mov ecx, dword [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call ebx
lea ecx, [ebp - 0x58]
call fcn.00406f50
lea ecx, [ebp - 0x70]
call fcn.00406f50
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410939
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 0x41094e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410984
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41097a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4109b4
push edx
push ecx
call fcn.0049ffea
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.004a02a0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404d60
push 0x80004005
call fcn.00404d60
call fcn.004e5039
int3