Function at 0x405140
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x425dfd
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x2a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2b4]
mov eax, dword [eax + 0x2c]
cmp dword [eax - 8], 0
je 0x40546c
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa2]
push edx
mov word [esp + 0xa4], cx
call fcn.0041a210
add esp, 0xc
lea eax, [esp + 0x98]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x98]
lea esi, [esp + 0x18]
call fcn.00401f30
push str.desktop.zip
push str.desktop.zip
mov dword [esp + 0x2b4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.004067e0
push 0x42bea8
push 0x9e
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40522c
mov esi, dword [esp + 0x18]
push esi
call fcn.00411000
add esp, 4
test al, al
je 0x40522c
mov ecx, ebx
push ecx
mov ecx, esi
call fcn.00410ac0
add esp, 4
lea ebx, [esp + 0x98]
lea esi, [esp + 0x1c]
call fcn.00401f30
mov ebx, str.desktop
lea eax, [esp + 0x20]
mov byte [esp + 0x2ac], 1
call fcn.004062a0
mov byte [esp + 0x2ac], 2
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx - 8]
push ebx
lea edi, [esp + 0x20]
call fcn.004067e0
lea edx, [ebx - 0xc]
mov byte [esp + 0x2ac], 1
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp edx, 0x433164
je 0x405297
lea esi, [ebx - 0xc]
push esi
call ebp
test eax, eax
jg 0x405297
push esi
call fcn.00417bee
add esp, 4
lea eax, [esp + 0x14]
push eax
call fcn.00404b40
push str.Icons_
push str.Icons_
mov byte [esp + 0x2b4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esp + 0x18]
call fcn.004067e0
call fcn.00404500
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x405403
mov ebp, 7
xor edi, edi
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], edi
mov word [esp + 0x64], cx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], edi
mov word [esp + 0x80], dx
mov dword [esp + 0x5c], vtable.StartMenuUrlBinder.0
mov byte [esp + 0x2ac], 4
xor eax, eax
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], edi
lea esi, [ecx + 2]
jmp 0x405330
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x405330
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x44]
call fcn.00401670
mov byte [esp + 0x2ac], 5
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405365
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x28]
call fcn.00401670
push 0xffffffffffffffff
push edi
mov eax, esi
lea ecx, [esp + 0x68]
mov byte [esp + 0x2b4], 6
call fcn.004012b0
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x48]
lea ecx, [esp + 0x84]
call fcn.004012b0
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x4053c1
mov edx, dword [esp + 0x28]
push edx
call fcn.004178bc
add esp, 4
xor eax, eax
mov byte [esp + 0x2ac], 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], ax
cmp dword [esp + 0x58], esi
jb 0x4053eb
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004178bc
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.004103f0
lea esi, [esp + 0x5c]
call fcn.004054a0
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x433164
je 0x40542c
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40542c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00417bee
add esp, 4
lea ecx, [ebx - 0xc]
cmp ecx, 0x433164
je 0x40544a
lea esi, [ebx - 0xc]
push esi
call ebp
test eax, eax
jg 0x40544a
push esi
call fcn.00417bee
add esp, 4
mov esi, dword [esp + 0x18]
lea edx, [esi - 0xc]
cmp edx, 0x433164
je 0x40546c
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x40546c
push esi
call fcn.00417bee
add esp, 4
mov ecx, dword [esp + 0x2a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.004178c7
add esp, 0x29c
ret 4