Function at 0x426880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x478
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
mov ebx, ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x426b03
mov ecx, dword [ebx]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffff0000
push 0
push 0x1101
push ecx
mov dword [esp + 0x24], 0xf0000000
call ebp
lea edx, [esp + 0x10]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov eax, dword [ecx + 0x24]
call eax
xor eax, eax
test dword [esp + 0x14], 0x80000000
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], 0x27
je 0x426946
mov dword [esp + 0x3c], 1
mov dword [esp + 0x1c], 0x67
mov eax, dword [0x4f8534]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0xc
push eax
call edx
mov esi, eax
test esi, esi
je 0x426b13
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push 0
lea eax, [esp + 0x88]
push eax
push 1
push ecx
push edx
call fcn.00425ef0
mov ecx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x88]
push 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x104
call fcn.00425de0
mov edi, dword [esp + 0x14]
movzx ecx, word [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4f8534]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
add ecx, 2
push ecx
push eax
call edx
movzx ecx, word [edi]
add ecx, 2
push ecx
push edi
push eax
mov dword [esp + 0x54], eax
call fcn.0049e4e0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, ebx
mov dword [esi + 4], edx
call fcn.00426000
mov edx, dword [esp + 0x10]
mov dword [esi], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x14]
push eax
push 0
call fcn.00425de0
mov dword [esi + 8], eax
mov edx, dword [ebx]
mov dword [esp + 0x44], esi
mov ecx, 0xa
lea esi, [esp + 0x20]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x50]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0xffff0000
call ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00426080
push esi
push 2
mov eax, dword [ebx]
push 0x1102
push eax
call ebp
lea ecx, [esp + 0x4c]
push ecx
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [ebx]
push esi
mov edi, 4
push edi
push 0x110a
push edx
call ebp
mov esi, eax
test esi, esi
je 0x426ade
mov ecx, dword [ebx]
lea eax, [esp + 0x20]
push eax
push 0
push 0x110c
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
call ebp
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push 0
push eax
call edx
push esi
test eax, eax
je 0x426acf
mov eax, dword [ebx]
push 1
push 0x110a
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x426a82
jmp 0x426ade
mov ecx, dword [ebx]
push 2
push 0x1102
push ecx
call ebp
mov dword [ebx + 4], esi
mov eax, dword [0x4f8534]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [0x4f8534]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x426b13
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x480]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049dea6
add esp, 0x478
ret