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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4def5d
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x438], ebx
lea eax, [ebx + 0x10]
mov dword [ebx], vtable.CxLogger.0
mov dword [ebp - 0x428], eax
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x475c47
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x14]
mov dword [ebp - 4], 0
xor ecx, ecx
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 0x47580e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x475808
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x475c51
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x475c57
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
push esi
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00476480
test al, al
jne 0x4758ac
test esi, esi
jne 0x475884
xor ecx, ecx
jmp 0x47589f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475890
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x424]
call fcn.00477ed0
mov byte [ebp - 4], 3
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x475c61
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x434], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 4
jge 0x4758fb
push 0x104
lea ecx, [ebp - 0x434]
call fcn.00477120
mov esi, dword [ebp - 0x434]
push 0x4e6768
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.004b59c3
add esp, 8
test eax, eax
js 0x475c3d
cmp eax, dword [esi - 8]
jg 0x475c3d
mov edi, dword [ebp - 0x424]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push ecx
push 0x4e678c
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], cx
call ebx
push esi
push eax
push 0x4e678c
push 0x4e6794
call ebx
mov ebx, dword [ebp - 0x428]
mov edx, 1
mov dword [ebp - 0x42c], eax
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x475989
push 0x104
mov ecx, ebx
call fcn.00477120
mov eax, dword [ebx]
push esi
push 0x104
push eax
push 0x4f9904
push 0x4e6798
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx]
test eax, eax
jne 0x4759ab
xor ecx, ecx
jmp 0x4759c1
push dword [eax - 8]
push eax
call fcn.004b59c3
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x475c3d
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x475c3d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
call fcn.00476b10
mov ecx, eax
test ecx, ecx
je 0x475c6b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x428], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 5
jge 0x475a22
push 0x104
lea ecx, [ebp - 0x428]
call fcn.00477120
mov edi, dword [ebp - 0x428]
mov eax, dword [ebp - 0x424]
push esi
push 0x104
push edi
push eax
push str.LogDirName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [edi - 8]
push edi
call fcn.004b59c3
add esp, 8
test eax, eax
js 0x475c3d
cmp eax, dword [edi - 8]
jg 0x475c3d
mov edx, dword [ebp - 0x42c]
xor ecx, ecx
mov dword [edi - 0xc], eax
or ebx, 0xffffffff
mov word [edi + eax*2], cx
mov eax, edx
mov ecx, dword [ebp - 0x430]
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 0x475bc6
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ad7b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push edi
push eax
call ebx
push str.Logs
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str..log
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.00475fa0
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call ebx
mov edx, dword [ebp - 0x42c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x475b2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov eax, dword [ebp - 0x430]
mov dword [eax + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x475bb9
mov dword [eax + 4], 0
add edi, 0xfffffff0
mov byte [ebp - 4], 4
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x475b7d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x475b98
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x424]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x475c1b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x475c1b
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x475be1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x475bfc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x424]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x475c1b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00476460
push 0x80004005
call fcn.00476460
push eax
call fcn.00476460
push 0x80004005
call fcn.00476460
push 0x80004005
call fcn.00476460
push 0x80004005
call fcn.00476460
int3