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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x424], ebx
mov dword [ebx], vtable.CxLogger.0
call fcn.00483350
mov ecx, eax
test ecx, ecx
je 0x485ac5
lea eax, [ebx + 0x10]
mov dword [ebp - 0x418], eax
mov eax, dword [ecx]
call dword [eax + 0xc]
xor ecx, ecx
add eax, 0x10
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4856a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x48569d
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x485abf
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c4ac0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x420]
call fcn.00483710
call fcn.00483350
mov ecx, eax
test ecx, ecx
je 0x485ac5
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, 1
sub ecx, dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [edi - 8]
sub eax, 0x104
mov dword [ebp - 0x41c], edi
or ecx, eax
jge 0x48572d
push 0x104
lea ecx, [ebp - 0x41c]
call fcn.00483480
mov edi, dword [ebp - 0x41c]
push 0x4f99a8
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [edi - 8]
push edi
call fcn.004cb7a7
add esp, 8
test eax, eax
js 0x485ab5
cmp eax, dword [edi - 8]
jg 0x485ab5
mov esi, dword [ebp - 0x420]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push ecx
push 0x4f99cc
mov dword [edi - 0xc], eax
push esi
mov word [edi + eax*2], cx
call ebx
push edi
push eax
push 0x4f99cc
push 0x4f99d4
call ebx
mov ebx, dword [ebp - 0x418]
mov ecx, 1
mov dword [ebp - 0x428], eax
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x4857ba
push 0x104
mov ecx, ebx
call fcn.00483480
mov edx, dword [ebx]
push edi
push 0x104
push edx
push 0x50f730
push 0x4f99d8
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx]
test eax, eax
jne 0x4857dc
xor ecx, ecx
jmp 0x4857f2
push dword [eax - 8]
push eax
call fcn.004cb7a7
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x485ab5
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x485ab5
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
call fcn.00483350
mov ecx, eax
test ecx, ecx
je 0x485ac5
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, 1
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
sub eax, 0x104
mov dword [ebp - 0x41c], esi
or ecx, eax
mov dword [ebp - 0x418], esi
jge 0x48585b
push 0x104
lea ecx, [ebp - 0x418]
call fcn.00483480
mov esi, dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
mov eax, dword [ebp - 0x420]
push edi
push 0x104
push esi
push eax
push str.LogDirName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.004cb7a7
add esp, 8
test eax, eax
js 0x485ab5
cmp eax, dword [esi - 8]
jg 0x485ab5
mov edx, dword [ebp - 0x428]
xor ecx, ecx
mov dword [esi - 0xc], eax
or ebx, 0xffffffff
mov word [esi + eax*2], cx
mov eax, edx
mov ecx, dword [ebp - 0x424]
and eax, 2
and edx, 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0
test eax, eax
je 0x485a55
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c4ac0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call esi
push str.Logs
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, dword [ebp - 0x420]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x428], eax
test ecx, ecx
je 0x485940
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x485956
call fcn.00483350
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x485ac5
mov eax, dword [ecx]
call dword [eax + 0xc]
push 4
push str..log
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.00486170
mov esi, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
add esp, 0x14
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4859a9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov eax, dword [ebp - 0x424]
mov dword [eax + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x485a42
mov edx, dword [ebp - 0x41c]
mov dword [eax + 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4859fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x485a13
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x485a9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x424]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 0x41c]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x485a6c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x485a83
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x420]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x485a9e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004831b0
push eax
call fcn.004831b0
push 0x80004005
call fcn.004831b0
int3