Function at 0x417460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4504f4
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
mov eax, dword [0x46166c]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x240]
push ecx
mov dword [ebp - 0x238], eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
xor ebx, ebx
test eax, eax
js 0x4174f5
lea edx, [ebp - 0x23c]
push edx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x4174e7
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x11c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], ebx
mov byte [ebp - 0x158], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417514
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x158]
call fcn.004099d0
push 0x28
push str.TheWorld6User_DataDefaultPreferences
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], ebx
call fcn.0040aae0
mov esi, 0xfffffe00
and dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], ebx
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 4], 2
call fcn.0042b200
lea edx, [ebp - 0x3bc]
push edx
mov byte [ebp - 4], 3
call fcn.0041a010
mov byte [ebp - 4], 4
cmp dword [ebp - 0x144], 0x10
mov ecx, dword [ebp - 0x158]
jae 0x41758f
lea ecx, [ebp - 0x158]
push 0x21
lea edx, [ebp - 0x3ac]
call fcn.0041bc30
test eax, eax
jne 0x4175c4
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x3b0]
lea ecx, [ebp + ecx - 0x3bc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x4175e5
or eax, 4
jmp 0x4175e5
mov ecx, dword [ebp - 0x3bc]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x384]
lea ecx, [ebp + ecx - 0x3bc]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
and eax, 0x17
test dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
je 0x4175f6
push ebx
call fcn.004057a0
lea edx, [ebp - 0x3bc]
push edx
lea ecx, [ebp - 0x264]
lea edi, [ebp - 0x234]
call fcn.0042b310
test al, al
je 0x41794f
and dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], ebx
mov eax, dword [ebp - 0x12c]
and eax, 0xffffff01
or eax, 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x134], 4
push str.restore_on_startup
lea ecx, [ebp - 0x254]
push ecx
mov byte [ebp - 4], 7
call fcn.004299b0
mov esi, eax
lea eax, [ebp - 0x134]
call fcn.004293a0
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00429300
mov edx, dword [ebp - 0x12c]
and edx, 0xffffff05
or edx, 5
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x134], 1
push str.restore_on_startup_migrated
lea eax, [ebp - 0x254]
push eax
mov byte [ebp - 4], 8
call fcn.004299b0
mov esi, eax
lea eax, [ebp - 0x134]
call fcn.004293a0
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00429300
mov eax, dword [ebp - 0x238]
lea esi, [ebp - 0x134]
call fcn.00429130
push str.urls_to_restore_on_startup
lea ecx, [ebp - 0x254]
push ecx
mov byte [ebp - 4], 9
call fcn.004299b0
mov esi, eax
movsx eax, byte [esi + 8]
cmp eax, 7
ja case.0x4176fb.0
jmp dword [eax*4 + 0x417a0c]
mov eax, dword [esi]
cmp dword [eax + 8], ebx
je case.0x4176fb.0
mov edx, dword [eax + 4]
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], edx
call fcn.0042a820
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x14]
inc eax
jmp 0x417732
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
jmp 0x417732
xor eax, eax
push eax
push esi
call fcn.00429740
mov esi, eax
lea eax, [ebp - 0x134]
call fcn.004293a0
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00429300
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x134]
call fcn.004291a0
mov edi, eax
push str.session
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 0xa
call fcn.004299b0
mov esi, eax
mov eax, edi
call fcn.004293a0
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00429300
mov eax, 0xf
mov dword [ebp - method.Json::StyledWriter.virtual_0], vtable.Json::StyledWriter.0
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
mov dword [ebp - 0x168], 0x4a
mov dword [ebp - 0x164], 3
lea ecx, [ebp - 0x30c]
push ecx
mov byte [ebp - 4], 0xb
call fcn.0041aa10
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x158]
mov esi, 0x10
cmp dword [ebp - 0x144], esi
jae 0x41781c
lea ecx, [ebp - 0x158]
push 2
lea edx, [ebp - 0x308]
call fcn.0041bc30
test eax, eax
jne 0x417851
mov edx, dword [ebp - 0x30c]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x300]
lea ecx, [ebp + ecx - 0x30c]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x417872
or eax, 4
jmp 0x417872
mov eax, dword [ebp - 0x30c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x2d4]
lea ecx, [ebp + ecx - 0x30c]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
and eax, 0x17
test dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
je 0x417883
push ebx
call fcn.004057a0
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x1b4]
call fcn.00427540
push eax
lea eax, [ebp - 0x30c]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040b5d0
add esp, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x128], esi
jb 0x4178cb
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0042f0d0
add esp, 4
lea eax, [ebp - 0x308]
call fcn.0041bcd0
test eax, eax
jne 0x41790d
mov edx, dword [ebp - 0x30c]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x300]
lea ecx, [ebp + ecx - 0x30c]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x4178fc
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x41790d
push ebx
call fcn.004057a0
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xb
call fcn.0041aca0
lea eax, [ebp - 0x2ac]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0042e431
add esp, 4
lea ecx, [ebp - 0x1b4]
call fcn.00417010
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 4
call fcn.00429300
lea eax, [ebp - 0x3ac]
call fcn.0041bcd0
test eax, eax
jne 0x417991
mov ecx, dword [ebp - 0x3bc]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x3b0]
lea ecx, [ebp + ecx - 0x3bc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x417980
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x417991
push ebx
call fcn.004057a0
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 3
call fcn.0041a140
lea edx, [ebp - 0x354]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0042e431
add esp, 4
lea edi, [ebp - 0x234]
call fcn.00417a30
lea eax, [ebp - 0x264]
mov byte [ebp - 4], bl
call fcn.00429300
cmp dword [ebp - 0x144], 0x10
jb 0x4179ea
mov eax, dword [ebp - 0x158]
push eax
call fcn.0042f0d0
add esp, 4
mov al, 1
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.0042ed1f
mov esp, ebp
pop ebp
ret 4