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

Disassembly:
push 0xffffffffffffffff
push 0x4fb14d
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5466b0]
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 [0x54d210]
mov edx, dword [eax + 0xc]
mov ecx, 0x54d210
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.004086c0
test eax, eax
jge 0x401ae4
push eax
call fcn.00408810
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.004d7710
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.004085e0
mov byte [esp + 0x444], 2
mov edx, dword [0x54d210]
mov eax, dword [edx + 0xc]
mov ecx, 0x54d210
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 0x401b88
mov ecx, 0x104
lea eax, [esp + 0x20]
call fcn.00408460
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.004cba0b
add esp, 8
test eax, eax
jl 0x401eea
cmp eax, dword [edi - 8]
jg 0x401eea
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 0x50f7ac
push eax
call ebx
push edi
push eax
push 0x50f7ac
push 0x50f7b4
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 0x401c0c
mov ecx, 0x104
mov eax, esi
call fcn.00408460
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push edi
push 0x104
push eax
push 0x514b40
push 0x50f7b8
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x401c45
push ecx
push eax
call fcn.004cba0b
add esp, 8
test eax, eax
jl 0x401eea
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x401eea
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [0x54d210]
mov eax, dword [edx + 0xc]
mov ecx, 0x54d210
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 0x401ca0
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.00408460
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.004cba0b
add esp, 8
test eax, eax
jl 0x401eea
cmp eax, dword [esi - 8]
jg 0x401eea
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 0x401e71
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x32]
push eax
mov word [esp + 0x34], dx
call fcn.004d7710
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.00404810
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 0x401d8d
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 0x401e60
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 0x401de4
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 0x401e08
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 0x401e30
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.004cb38b
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 0x401e95
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 0x401eb9
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 0x401e34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401e34
push 0x80070057
call fcn.00408810
int3