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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506439
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x270
mov eax, dword [0x54c39c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004dbe40
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.ADBlockMaster
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412992
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4129c0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.004088e0
mov dword [ebp - 4], 1
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x412cd7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
push str.ADBlockMaster_tray.log
cmovae eax, dword [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push str._s_s
push eax
call fcn.0040c240
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x412ce1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x228]
mov esi, dword [ebp - 0x224]
push esi
push str._s.on
push eax
call fcn.0040c240
mov edi, dword [ebp - 0x228]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412a9b
mov ecx, dword [ebp - 0x244]
mov byte [ecx + 4], al
jmp 0x412c46
mov eax, dword [ebp - 0x244]
push 0x28
mov byte [eax + 4], 1
call fcn.0049a49a
add esp, 4
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
mov dword [eax], vtable.Utils::LogAppender.0
mov edx, esi
mov dword [eax + 4], 0
mov byte [eax + 8], 1
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea eax, [edx + 2]
mov dword [ebp - 0x248], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412af0
sub edx, dword [ebp - 0x248]
sar edx, 1
push edx
push esi
call fcn.004088e0
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x244]
mov byte [ebp - 4], 4
mov dword [eax + 0x24], 0xffffffff
mov dword [ecx + 0x20], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00412d00
push 0x3c
push str._____________________log_start_____________________________r_n
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00413570
mov dword [ebp - 0x254], 0
xor ecx, ecx
mov dword [ebp - 0x250], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x264], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x254], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24c]
push eax
call dword [ebp - 0x248]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x412be5
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412bdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ceb
push edx
push ecx
call fcn.0049a747
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
cmp edx, 8
jb 0x412c46
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412cf0
push edx
push ecx
call fcn.0049a747
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 0x412c64
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 0x412c7d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x412cb9
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412caf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412cf5
push edx
push ecx
call fcn.0049a747
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049a1fc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
call fcn.004df7ad
call fcn.004df7ad
call fcn.004df7ad
int3