Function at 0x4127d0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea4d9
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x52a394]
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 - 0x240], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bff80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.ADBlockMaster
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412861
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412887
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00408a80
mov dword [ebp - 4], 1
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x412b3c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
push str.ADBlockMaster_tray.log
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call fcn.0040c770
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x412b46
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x220]
mov esi, dword [ebp - 0x21c]
push esi
push str._s.on
push eax
call fcn.0040c770
mov edi, dword [ebp - 0x220]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412958
mov byte [ebx + 4], al
jmp 0x412aad
push 0x28
mov byte [ebx + 4], 1
call fcn.00493d4a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x244], ebx
mov byte [ebp - 4], 7
lea ecx, [ebx + 0xc]
mov dword [ebx], vtable.Utils::LogAppender.0
mov edx, esi
mov dword [ebx + 4], 0
xor eax, eax
mov byte [ebx + 8], 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea eax, [edx + 2]
mov dword [ebp - 0x23c], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4129a4
sub edx, dword [ebp - 0x23c]
sar edx, 1
push edx
push esi
call fcn.00408a80
mov eax, dword [ebp - 0x240]
mov dword [ebx + 0x24], 0xffffffff
mov byte [ebp - 4], 4
mov dword [eax + 0x20], ebx
mov eax, dword [ebx]
mov ebx, dword [eax]
lea eax, [ebp - 0x274]
push eax
call fcn.00412b60
push str._____________________log_start_____________________________r_n
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x25c]
call fcn.004131d0
add esp, 4
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x244]
push eax
call ebx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x412a4c
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412a42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b50
push edx
push ecx
call fcn.00493ff7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
cmp edx, 8
jb 0x412aad
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412aa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b55
push edx
push ecx
call fcn.00493ff7
add esp, 8
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0xa
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412acb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xb
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x412ae4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x412b20
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412b16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b5a
push edx
push ecx
call fcn.00493ff7
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.00493aac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
call fcn.004c38d4
call fcn.004c38d4
call fcn.004c38d4
int3