Function at 0x40c280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efa97
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x532630]
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], 0x4f8f6c
mov dword [eax + 4], 6
lea eax, [ebp - 0x28]
push eax
call fcn.00416e50
add esp, 0xc
mov dword [ebp - 4], 1
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x40c4a0
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.00405d60
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x40c4aa
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.00405d60
mov edi, dword [ebp - 0x30]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c362
mov byte [ebx + 4], al
jmp 0x40c41f
push 0x28
mov byte [ebx + 4], 1
call fcn.0049044a
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 0x40c3d3
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 0x40c3b0
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0xc]
call fcn.00405920
mov dword [ebx + 0x24], 0xffffffff
jmp 0x40c3d8
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.0040c170
push str._____________________log_start_____________________________r_n
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
call fcn.0040b470
add esp, 0xc
mov ecx, dword [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call ebx
lea ecx, [ebp - 0x58]
call fcn.00404910
lea ecx, [ebp - 0x70]
call fcn.00404910
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c439
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 0x40c44e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c484
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c47a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4b4
push edx
push ecx
call fcn.0049047a
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.00490730
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404dd0
push 0x80004005
call fcn.00404dd0
call fcn.004cd4a9
int3