Function at 0x485670
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.004833a0
mov ecx, eax
test ecx, ecx
je 0x485b15
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 0x4856f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4856ed
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x485b0f
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c49e0
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.00483760
call fcn.004833a0
mov ecx, eax
test ecx, ecx
je 0x485b15
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 0x48577d
push 0x104
lea ecx, [ebp - 0x41c]
call fcn.004834d0
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.004cb6c8
add esp, 8
test eax, eax
js 0x485b05
cmp eax, dword [edi - 8]
jg 0x485b05
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 0x48580a
push 0x104
mov ecx, ebx
call fcn.004834d0
mov edx, dword [ebx]
push edi
push 0x104
push edx
push 0x50f7a0
push 0x4f99d8
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx]
test eax, eax
jne 0x48582c
xor ecx, ecx
jmp 0x485842
push dword [eax - 8]
push eax
call fcn.004cb6c8
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x485b05
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x485b05
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
call fcn.004833a0
mov ecx, eax
test ecx, ecx
je 0x485b15
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 0x4858ab
push 0x104
lea ecx, [ebp - 0x418]
call fcn.004834d0
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.004cb6c8
add esp, 8
test eax, eax
js 0x485b05
cmp eax, dword [esi - 8]
jg 0x485b05
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 0x485aa5
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c49e0
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 0x485990
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4859a6
call fcn.004833a0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x485b15
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.004861c0
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 0x4859f9
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 0x485a92
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 0x485a4c
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 0x485a63
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 0x485aee
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.004c1fe9
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 0x485abc
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 0x485ad3
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 0x485aee
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.004c1fe9
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00483200
push eax
call fcn.00483200
push 0x80004005
call fcn.00483200
int3