Function at 0x4031d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4462bc
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ebp - 0x37c], 0x4624a8
mov dword [0x4624bc], 7
mov dword [0x4624b8], 0
mov word [0x4624a8], ax
mov dword [ebp - 4], eax
call fcn.004035c0
push 0x102
push 0x4624c4
mov dword [0x4624c0], eax
call fcn.0041114b
add esp, 8
mov byte [ebp - 4], 1
cmp dword [0x4624c0], 0
mov dword [0x4624f4], 0
jle 0x403594
push 0xfc
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0042b2b0
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x403594
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x378]
call fcn.0040ae00
push 0x45663c
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 2
call fcn.0040c3a0
push eax
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 3
call fcn.0040ab50
mov byte [ebp - 4], 2
mov esi, eax
mov ecx, dword [ebp - 0x334]
cmp ecx, 8
jb 0x4032ee
inc ecx
push ecx
push dword [ebp - 0x348]
lea ecx, [ebp - 0x348]
call fcn.00408700
xor eax, eax
mov dword [ebp - 0x334], 7
mov word [ebp - 0x348], ax
lea ecx, [ebp - 0x360]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x338], 0
push eax
call fcn.0040ae00
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040ab50
mov byte [ebp - 4], 2
mov esi, eax
mov ecx, dword [ebp - 0x34c]
cmp ecx, 8
jb 0x40334d
inc ecx
push ecx
push dword [ebp - 0x360]
lea ecx, [ebp - 0x360]
call fcn.00408700
xor eax, eax
mov dword [ebp - 0x34c], 7
push str.Logs
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x350], 0
mov word [ebp - 0x360], ax
call fcn.0040c3a0
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040ab50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x31c]
cmp eax, 8
jb 0x4033a8
inc eax
lea ecx, [ebp - 0x330]
push eax
push dword [ebp - 0x330]
call fcn.00408700
lea ecx, [ebp - 0x378]
call fcn.00403000
test al, al
jne 0x4033cd
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 6
call fcn.00402cb0
mov dword [ebp - 4], 2
sub esp, 8
lea ecx, [ebp - 0x42c]
call fcn.00404e10
lea edx, [ebp - 0x318]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x41c]
call fcn.0040af90
mov edx, str.Sonarworks
mov ecx, eax
call fcn.0040af90
lea edx, [ebp - 0x110]
mov ecx, eax
call fcn.0040af90
mov edx, str.Logs_
mov ecx, eax
call fcn.0040af90
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404d00
mov esi, eax
cmp esi, 0x4624a8
je 0x403474
mov eax, dword [0x4624bc]
cmp eax, 8
jb 0x40344d
inc eax
mov ecx, 0x4624a8
push eax
push dword [0x4624a8]
call fcn.00408700
xor eax, eax
mov dword [0x4624bc], 7
push esi
mov ecx, 0x4624a8
mov dword [0x4624b8], 0
mov word [0x4624a8], ax
call fcn.00407c90
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x31c]
cmp eax, 8
jb 0x403496
inc eax
lea ecx, [ebp - 0x330]
push eax
push dword [ebp - 0x330]
call fcn.00408700
push 0x104
lea eax, [ebp - 0x318]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4034e3
lea eax, [ebp - 0x318]
push 0x5c
push eax
call fcn.0042a702
add esp, 8
lea edx, [eax + 2]
test eax, eax
jne 0x4034cc
lea edx, [ebp - 0x318]
lea ecx, [ebp - 0x41c]
call fcn.0040af90
mov edx, 0x456678
mov ecx, eax
call fcn.0040af90
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00405580
mov edx, 0x45667c
mov ecx, eax
call fcn.0040af90
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404d00
cmp dword [eax + 0x14], 8
jb 0x40351b
mov eax, dword [eax]
push 0x20
push 0x456688
push eax
call fcn.0042dbf3
mov dword [0x4624f4], eax
add esp, 0xc
mov eax, dword [ebp - 0x31c]
cmp eax, 8
jb 0x40354e
inc eax
lea ecx, [ebp - 0x330]
push eax
push dword [ebp - 0x330]
call fcn.00408700
lea ecx, [ebp - 0x3c4]
call fcn.00404d20
lea eax, [ebp - 0x3c4]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00410cb4
mov ecx, dword [ebp - 0x364]
add esp, 4
cmp ecx, 8
jb 0x403594
inc ecx
push ecx
push dword [ebp - 0x378]
lea ecx, [ebp - 0x378]
call fcn.00408700
mov eax, 0x4624a8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412374
mov esp, ebp
pop ebp
ret 0xc