Function at 0x408ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fad3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
push ebx
push esi
push edi
push 0xe900
push 0x50000000
mov edi, ecx
mov eax, dword [edi + 0x1ac]
mov edx, dword [eax + 0x164]
push 2
push 1
push edi
lea ecx, [edi + 0x1ac]
mov dword [ebp - 0x10], edi
call edx
test eax, eax
je 0x4093f4
mov ebx, dword [ebp + 0xc]
mov edx, dword [edi + 0x1ac]
push ebx
mov ecx, 0x64
push ecx
mov eax, 0xc8
push eax
mov eax, dword [edx + 0x168]
push 0x5a8fc0
xor ebx, ebx
push ebx
push ebx
lea ecx, [edi + 0x1ac]
call eax
test eax, eax
je 0x4093e3
push dword [ebp + 0xc]
mov edx, dword [edi + 0x1ac]
mov eax, 0x64
mov ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x168]
push 0x5aeb58
push 1
push ebx
lea ecx, [edi + 0x1ac]
call eax
test eax, eax
je 0x4093e3
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x5a9528
call fcn.00402bd0
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x61761c
call fcn.0042e6a0
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], ebx
mov word [ebp - 0xdc], cx
mov dword [ebp - 4], 1
xor edx, edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x6c], dx
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x50], ax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
mov byte [ebp - 4], 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov word [ebp - 0x14c], dx
mov byte [ebp - 4], 5
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov word [ebp - 0x130], ax
mov byte [ebp - 4], 6
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe8], ebx
mov word [ebp - 0xf8], cx
mov byte [ebp - 4], 7
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], ebx
mov word [ebp - 0xa4], dx
mov byte [ebp - 4], 8
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x104], ebx
mov word [ebp - 0x114], ax
mov byte [ebp - 4], 9
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], ebx
mov word [ebp - 0xc0], cx
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0xf8]
lea ecx, [edi + 0x148]
push eax
call fcn.00412b10
sub esp, 0x1c
mov ecx, esp
mov edi, 0xf
mov dword [ebp + 0xc], esp
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x10
push str.StaffcopReports
mov byte [ecx], bl
call fcn.00404f50
mov byte [ebp - 4], 0xb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x13
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.PREFDLG_REPORTS_DIR
mov byte [ecx], bl
call fcn.00404f50
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x88]
push ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x504]
call fcn.00433490
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x408ee7
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
push eax
add ecx, 0x508
push 0x5aa3a4
push ecx
call fcn.004021f0
add esp, 0xc
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x74], 8
jb 0x408f18
mov eax, dword [ebp - 0x88]
push eax
call fcn.00448f11
add esp, 4
sub esp, 0x1c
xor ecx, ecx
mov word [ebp - 0x88], cx
mov ecx, esp
mov dword [ebp + 0xc], esp
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], ebx
push 2
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x5aa3a0
mov byte [ecx], bl
call fcn.00404f50
mov byte [ebp - 4], 0xe
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x10
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.PREFDLG_LANGUAGE
mov byte [ecx], bl
call fcn.00404f50
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x88]
push edx
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi + 0x504]
call fcn.00433490
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 8
jb 0x408f8c
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x50c]
push 0x5aa3a4
push ecx
call fcn.004021f0
add esp, 0xc
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x74], 8
jb 0x408fba
mov eax, dword [ebp - 0x88]
push eax
call fcn.00448f11
add esp, 4
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], ebx
mov word [ebp - 0x88], cx
call fcn.0043b190
mov ecx, dword [ebp - 0x14]
push 0x104
lea eax, [ebp - 0x354]
push eax
push 0x5aa378
push ecx
call fcn.0043b050
add esp, 0x14
test eax, eax
jne 0x40906e
push 1
push 5
lea edx, [ebp - 0x55c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x55c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409010
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x55c]
push eax
lea ecx, [ebp - 0x50]
call fcn.004025a0
push 1
push 0x5aa374
lea ecx, [ebp - 0x50]
call fcn.00404e30
mov edx, dword [edi + 0x508]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409050
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x50]
call fcn.00404e30
mov edi, dword [ebp - 0x10]
jmp 0x409096
lea eax, [ebp - 0x354]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409077
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x354]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004025a0
mov eax, dword [ebp - 0x14]
push 0x104
lea edx, [ebp - 0x354]
push edx
push 0x5a9fb8
push eax
call fcn.0043b050
add esp, 0x10
test eax, eax
jne 0x4090fe
mov eax, dword [edi + 0x50c]
cmp dword [eax - 4], 1
jle 0x4090d2
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [edi + 0x50c]
call fcn.004018f0
mov edx, dword [edi + 0x50c]
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4090e0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x30]
call fcn.004025a0
mov edi, dword [ebp - 0x10]
jmp 0x409126
lea eax, [ebp - 0x354]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409107
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x354]
push edx
lea ecx, [ebp - 0x30]
call fcn.004025a0
mov ecx, dword [ebp - 0x14]
push 0x104
lea eax, [ebp - 0x354]
push eax
push str.LogsDir
push ecx
call fcn.0043b050
add esp, 0x10
test eax, eax
jne 0x409192
push 1
push 0x1a
lea edx, [ebp - 0x55c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x55c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409162
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x55c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004025a0
push 9
push 0x5aa350
lea ecx, [ebp - 0x6c]
call fcn.00404e30
jmp 0x4091bf
lea eax, [ebp - 0x354]
lea edx, [eax + 2]
jmp 0x4091a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4091a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x354]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004025a0
mov edx, dword [ebp - 0x94]
push ebx
push 0x5a9528
push edx
push ebx
lea ecx, [ebp - 0xa4]
call fcn.004071b0
test eax, eax
je 0x409204
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4091e8
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xb0]
push ecx
push eax
push edx
push ebx
lea ecx, [ebp - 0xc0]
call fcn.004071b0
test eax, eax
je 0x409222
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [edi + 0x148]
call fcn.00411130
push ebx
push ebx
lea eax, [edi + 0x148]
push eax
push 0x61761c
mov ecx, edi
call fcn.00407080
mov ecx, eax
call fcn.00403040
mov byte [ebp - 4], 9
mov edi, 8
cmp dword [ebp - 0xac], edi
jb 0x40925e
mov ecx, dword [ebp - 0xc0]
push ecx
call fcn.00448f11
add esp, 4
xor edx, edx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], ebx
mov word [ebp - 0xc0], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x100], edi
jb 0x40928e
mov eax, dword [ebp - 0x114]
push eax
call fcn.00448f11
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x104], ebx
mov word [ebp - 0x114], cx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x90], edi
jb 0x4092be
mov edx, dword [ebp - 0xa4]
push edx
call fcn.00448f11
add esp, 4
xor eax, eax
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], ebx
mov word [ebp - 0xa4], ax
mov byte [ebp - 4], 6
cmp dword [ebp - 0xe4], edi
jb 0x4092ee
mov ecx, dword [ebp - 0xf8]
push ecx
call fcn.00448f11
add esp, 4
xor edx, edx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe8], ebx
mov word [ebp - 0xf8], dx
mov byte [ebp - 4], 5
xor eax, eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov word [ebp - 0x130], ax
mov byte [ebp - 4], 4
xor ecx, ecx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov word [ebp - 0x14c], cx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], edi
jb 0x40934a
mov edx, dword [ebp - 0x30]
push edx
call fcn.00448f11
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x3c], edi
jb 0x40936b
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00448f11
add esp, 4
xor edx, edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x50], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x58], edi
jb 0x40938c
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00448f11
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x6c], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc8], edi
jb 0x4093b6
mov edx, dword [ebp - 0xdc]
push edx
call fcn.00448f11
add esp, 4
xor eax, eax
mov word [ebp - 0xdc], ax
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edi + 0x1ac]
mov eax, dword [edx + 0x60]
lea ecx, [edi + 0x1ac]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8