Function at 0x4086a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b401d
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4e1370]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44c]
mov dword [ebp], vtable.CxLogger.0
mov eax, dword [0x4e7464]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e7464
mov dword [esp + 0x18], ebp
lea esi, [ebp + 0x10]
call edx
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp + 0x14]
xor eax, eax
mov dword [esp + 0x444], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00404970
test eax, eax
jge 0x408734
push eax
call fcn.004058d0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x23a]
mov byte [esp + 0x44c], 1
push ecx
mov word [esp + 0x23c], ax
call fcn.00494b20
add esp, 0xc
push 0x104
lea edx, [esp + 0x234]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00405a20
mov byte [esp + 0x444], 2
mov edx, dword [0x4e7464]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e7464
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x444], 3
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4087d8
mov ecx, 0x104
lea eax, [esp + 0x20]
call fcn.00405860
mov edi, dword [esp + 0x20]
push str...xLogConfig.ini
lea ecx, [esp + 0x234]
push ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004913b1
add esp, 8
test eax, eax
jl 0x408b3a
cmp eax, dword [edi - 8]
jg 0x408b3a
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
xor edx, edx
mov dword [edi - 0xc], eax
push edx
mov word [edi + eax*2], dx
mov eax, dword [esp + 0x1c]
push 0x4c5ea4
push eax
call ebx
push edi
push eax
push 0x4c5ea4
push 0x4c5eac
call ebx
mov ebx, eax
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40885c
mov ecx, 0x104
mov eax, esi
call fcn.00405860
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push edi
push 0x104
push eax
push 0x4c4788
push 0x4c5eb0
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x408895
push ecx
push eax
call fcn.004913b1
add esp, 8
test eax, eax
jl 0x408b3a
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x408b3a
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [0x4e7464]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e7464
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x444], 4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4088f0
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.00405860
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push edi
push 0x104
push esi
push eax
push str.LogDirName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004913b1
add esp, 8
test eax, eax
jl 0x408b3a
cmp eax, dword [esi - 8]
jg 0x408b3a
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, ebx
and eax, 2
and ebx, 1
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x408ac1
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x32]
push eax
mov word [esp + 0x34], dx
call fcn.00494b20
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea edx, [esp + 0x2c]
push edx
call ebp
push str.Logs
lea eax, [esp + 0x2c]
push eax
call ebp
lea ecx, [esp + 0x28]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
mov ebx, str..log
call fcn.004085c0
mov eax, dword [eax]
add esp, 8
push eax
lea ecx, [esp + 0x2c]
push ecx
call ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4089dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0xc], eax
cmp eax, 0xffffffff
jne 0x408ab0
add esi, 0xfffffff0
mov dword [ecx + 4], 0
mov byte [esp + 0x444], 3
lea edx, [esi + 0xc]
or eax, eax
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x408a34
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0xfffffff0
mov byte [esp + 0x444], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a58
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x444], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
mov eax, ebp
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0049021b
add esp, 0x434
ret 4
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x18]
add esi, 0xfffffff0
mov byte [esp + 0x444], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ae5
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0xfffffff0
mov byte [esp + 0x444], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408b09
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [esp + 0x444], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408a84
push 0x80070057
call fcn.004058d0
int3