Function at 0x412cf0
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 0x51a9af
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x288
mov eax, dword [0x55f3a4]
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 - 0x268], ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x56d0b8]
cmp eax, dword [esi + 4]
jle 0x412d79
push 0x56d0b8
call fcn.004af7b6
add esp, 4
cmp dword [0x56d0b8], 0xffffffff
jne 0x412d79
push 0x56d0b8
mov dword [0x56d0bc], 0
call fcn.004af76c
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x25d], 0
movlpd qword [ebp - 0x23c], xmm0
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
call fcn.00432a45
add esp, 4
mov dword [ebp - 4], 1
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x25d]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x244]
push eax
push 0x4154e0
push 0x56d0bc
call fcn.00432c10
add esp, 0xc
test eax, eax
je 0x41325e
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 2
push eax
call fcn.00432a7f
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.004efd80
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x56b9e0
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 0x412e59
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412e80
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004089c0
mov dword [ebp - 4], 6
call fcn.00405ae0
mov ecx, eax
test ecx, ecx
je 0x41328f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov eax, dword [0x56d0c0]
cmp eax, dword [esi + 4]
jle 0x412f02
push 0x56d0c0
call fcn.004af7b6
add esp, 4
cmp dword [0x56d0c0], 0xffffffff
jne 0x412f02
push 0x56d0c0
mov dword [0x56d0c4], 0
call fcn.004af76c
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x25e], 0
movlpd qword [ebp - 0x228], xmm0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 8
push eax
call fcn.00432a45
add esp, 4
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x25e]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
push 0x4155a0
push 0x56d0c4
call fcn.00432c10
add esp, 0xc
test eax, eax
je 0x413241
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xa
push eax
call fcn.00432a7f
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
push 0x56b9b4
push eax
lea eax, [ebp - 0x22c]
push str._s_s
push eax
call fcn.00405660
add esp, 0x10
mov byte [ebp - 4], 0xd
call fcn.00405ae0
mov ecx, eax
test ecx, ecx
je 0x413299
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x230]
mov esi, dword [ebp - 0x22c]
push esi
push str._s.on
push eax
call fcn.00405660
mov edi, dword [ebp - 0x230]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413006
mov ecx, dword [ebp - 0x268]
mov byte [ecx + 4], al
jmp 0x4131ac
mov eax, dword [ebp - 0x268]
push 0x28
mov byte [eax + 4], 1
call fcn.004af8b8
add esp, 4
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0x11
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 - 0x264], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x413056
sub edx, dword [ebp - 0x264]
sar edx, 1
push edx
push esi
call fcn.004089c0
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x268]
mov byte [ebp - 4], 0xe
mov dword [eax + 0x24], 0xffffffff
mov dword [ecx + 0x20], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x298]
push eax
call fcn.004132d0
push 0x3c
push str._____________________log_start_____________________________r_n
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.00415270
mov dword [ebp - 0x270], 0
xor ecx, ecx
mov dword [ebp - 0x26c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x280], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x270], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x224]
push eax
call dword [ebp - 0x264]
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x41314b
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413141
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4132a3
push edx
push ecx
call fcn.004af8aa
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
cmp edx, 8
jb 0x4131ac
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4131a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4132a8
push edx
push ecx
call fcn.004af8aa
add esp, 8
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 0x14
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4131ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x15
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4131e3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x413223
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413219
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4132ad
push edx
push ecx
call fcn.004af8aa
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.004af60c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xb
push eax
call fcn.00432aa0
add esp, 4
mov byte [ebp - 4], 9
test al, al
je 0x4132c8
jmp 0x4132b2
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 3
push eax
call fcn.00432aa0
add esp, 4
mov byte [ebp - 4], 1
test al, al
je 0x4132c8
sub esp, 8
lea eax, [ebp - 0x23c]
mov ecx, esp
push eax
call fcn.00404e30
call fcn.00404e90
push 0x80004005
call fcn.004060f0
push 0x80004005
call fcn.004060f0
call fcn.004f36b0
call fcn.004f36b0
call fcn.004f36b0
sub esp, 8
lea eax, [ebp - 0x228]
mov ecx, esp
push eax
call fcn.00404e30
call fcn.00404e90
call fcn.00432c28
int3