Function at 0x431c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b374
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
mov eax, dword [0x4c56f0]
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 0x431cd5
lea edx, [ebp - 0x23c]
push edx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x431cc7
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 0x431cf4
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x158]
call fcn.0040c230
push 0x28
push str.TheWorld6User_DataDefaultPreferences
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], ebx
call fcn.0040d510
and dword [ebp - 0x25c], 0xfffffe00
mov dword [ebp - 0x258], ebx
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 4], 2
call fcn.00442ad0
lea edx, [ebp - 0x314]
push edx
mov byte [ebp - 4], 3
call fcn.004343b0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x144], 0x10
mov ecx, dword [ebp - 0x158]
jae 0x431d6e
lea ecx, [ebp - 0x158]
push 0x21
lea esi, [ebp - 0x304]
call fcn.00410330
test eax, eax
jne 0x431da3
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x308]
lea ecx, [ebp + ecx - 0x314]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x431dc4
or eax, 4
jmp 0x431dc4
mov ecx, dword [ebp - 0x314]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x2dc]
lea ecx, [ebp + ecx - 0x314]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push ebx
push eax
call fcn.00404c90
lea edx, [ebp - 0x314]
push edx
lea ecx, [ebp - 0x264]
lea edi, [ebp - 0x234]
call fcn.00442be0
test al, al
je 0x4320c0
and dword [ebp - 0x24c], 0xfffffe00
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.00441300
mov esi, eax
lea eax, [ebp - 0x134]
call fcn.00440d20
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00440c80
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.00441300
mov esi, eax
lea eax, [ebp - 0x134]
call fcn.00440d20
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00440c80
mov eax, dword [ebp - 0x238]
lea esi, [ebp - 0x134]
call fcn.00440ab0
push str.urls_to_restore_on_startup
lea ecx, [ebp - 0x254]
push ecx
mov byte [ebp - 4], 9
call fcn.00441300
mov esi, eax
movsx eax, byte [esi + 8]
cmp eax, 7
ja case.0x431ed4.0
jmp dword [eax*4 + 0x432178]
mov eax, dword [esi]
cmp dword [eax + 8], ebx
je case.0x431ed4.0
mov edx, dword [eax + 4]
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], edx
call fcn.00442140
mov eax, dword [ebp - 0x238]
mov eax, dword [eax + 0x14]
inc eax
jmp 0x431f0b
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
jmp 0x431f0b
xor eax, eax
push eax
push esi
call fcn.004410d0
mov esi, eax
lea eax, [ebp - 0x134]
call fcn.00440d20
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00440c80
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x134]
call fcn.00440b20
mov edi, eax
push str.session
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 0xa
call fcn.00441300
mov esi, eax
mov eax, edi
call fcn.00440d20
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00440c80
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 - 0x3bc]
push ecx
mov byte [ebp - 4], 0xb
call fcn.004344e0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x158]
mov esi, 0x10
cmp dword [ebp - 0x144], esi
jae 0x431ff5
lea ecx, [ebp - 0x158]
lea edi, [ebp - 0x3bc]
call fcn.00434610
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0043f020
push eax
mov ecx, edi
push ecx
mov byte [ebp - 4], 0xd
call fcn.0040e0e0
add esp, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x128], esi
jb 0x432044
mov edx, dword [ebp - 0x13c]
push edx
call fcn.0046ead2
add esp, 4
lea ecx, [ebp - 0x3b8]
call fcn.00410400
test eax, eax
jne 0x43207c
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 0x432075
or eax, 4
push ebx
push eax
call fcn.00404c90
lea ecx, [ebp - 0x35c]
mov byte [ebp - 4], 0xb
call fcn.0040ff30
lea ecx, [ebp - 0x35c]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0046d124
add esp, 4
lea ecx, [ebp - 0x1b4]
call fcn.00431690
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 4
call fcn.00440c80
jmp 0x4320c5
mov esi, 0x10
lea ecx, [ebp - 0x304]
call fcn.00410400
test eax, eax
jne 0x4320fd
mov edx, dword [ebp - 0x314]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x308]
lea ecx, [ebp + ecx - 0x314]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x4320f6
or eax, 4
push ebx
push eax
call fcn.00404c90
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
call fcn.0040f530
lea eax, [ebp - 0x2ac]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0046d124
add esp, 4
lea edi, [ebp - 0x234]
call fcn.004321a0
lea eax, [ebp - 0x264]
mov byte [ebp - 4], bl
call fcn.00440c80
cmp dword [ebp - 0x144], esi
jb 0x432155
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0046ead2
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.0046eadd
mov esp, ebp
pop ebp
ret 4