Function at 0x403510
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x420a57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push ebp
lea eax, [esp + 0x30]
mov ebp, ecx
xor ebx, ebx
push eax
mov ecx, dword [ebp + 4]
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 4]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x4d8]
lea ecx, [esp + 0x54]
cmp eax, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0x422470
je 0x403570
mov dword [esp + 0x40], eax
lea edx, [esp + 0x34]
mov dword [esp + 0x44], 0x42
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, 1
jne 0x4037b6
mov dl, byte [esp + 0xb]
push esi
push edi
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.0040cf30
lea eax, [esp + 0x5c]
push eax
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x5c]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040cb90
mov esi, dword [0x422604]
push 0x4274f0
mov dword [esp + 0x270], ebx
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x24]
push eax
push esi
push 0x4274f0
call fcn.0040ccf0
mov ecx, dword [esp + 0x2c]
lea edx, [ecx - 1]
cmp eax, edx
jne 0x403627
push str.Maxthon2_
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x24]
push eax
push str.Maxthon2_
call fcn.0040a1a0
jmp 0x40368d
inc eax
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040a270
mov eax, dword [esp + 0x18]
mov byte [esp + 0x26c], 1
cmp eax, ebx
jne 0x40364d
mov eax, 0x422470
push str.maxthon2
push eax
call fcn.00417f5c
add esp, 8
test eax, eax
je 0x40367b
push 0x427374
call fcn.00417a8e
add esp, 4
lea ecx, [esp + 0x24]
push eax
push 0x427374
call fcn.0040a1a0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x270], bl
call fcn.0040cf30
mov dword [esp + 0x34], ebx
mov esi, 0x422600
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
push ebx
push str.inst_directory
push 0x42731c
lea ecx, [esp + 0x20]
push ebx
push ecx
lea ecx, [ebp + 0x45c]
mov byte [esp + 0x280], 3
call fcn.0040f110
mov eax, dword [esp + 0x18]
mov byte [esp + 0x26c], 2
push eax
mov edi, eax
mov dword [esp + 0x18], esi
call dword [sym.imp.MxUI.dll_HTMLayout_UseElement]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, edi
mov dword [esp + 0x34], esi
je 0x403779
mov edi, dword [esp + 0x28]
cmp edi, ebx
jne 0x403700
mov edi, 0x422470
cmp edi, ebx
je 0x403712
push edi
call fcn.00417a8e
add esp, 4
push eax
push edi
push esi
call dword [sym.imp.MxUI.dll_HTMLayoutSetElementInnerText16]
push 0x8000
push esi
call dword [sym.imp.MxUI.dll_HTMLayoutUpdateElementEx]
push 2
lea edx, [esp + 0x18]
push ebx
push edx
lea ecx, [esp + 0x30]
call fcn.0040a270
mov eax, dword [esp + 0x18]
mov byte [esp + 0x26c], 4
cmp eax, ebx
jne 0x403744
mov eax, 0x422470
push eax
mov ecx, ebp
call fcn.00402ef0
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x403772
mov al, byte [ecx - 1]
cmp al, bl
je 0x403766
cmp al, 0xff
je 0x403766
dec al
mov byte [ecx - 1], al
jmp 0x403772
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
push esi
call dword [sym.imp.MxUI.dll_HTMLayout_UnuseElement]
mov ecx, dword [esp + 0x28]
pop edi
cmp ecx, ebx
pop esi
je 0x4037b6
mov al, byte [ecx - 1]
cmp al, bl
je 0x4037aa
cmp al, 0xff
je 0x4037aa
dec al
pop ebp
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
add esp, 0x260
ret
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov ecx, dword [esp + 0x25c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x260
ret