Function at 0x40e250
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4557d3
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x470050]
xor eax, esp
push eax
lea eax, [esp + 0x2bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2d8]
mov esi, dword [esp + 0x2cc]
mov ebp, dword [esp + 0x2d0]
mov ebx, dword [esp + 0x2d4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2dc]
push eax
lea edi, [esp + 0x60]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004048e0
add esp, 4
mov dword [esp + 0x2c4], 0
mov eax, dword [esp + 0x70]
test eax, eax
jbe 0x40e30c
lea edi, [eax - 1]
cmp edi, eax
jbe 0x40e2e6
call fcn.0042c4d4
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x40e2f5
lea eax, [esp + 0x60]
cmp word [eax + edi*2], 0x5c
je 0x40e30c
push 1
mov eax, 0x45bc38
lea ecx, [esp + 0x60]
call fcn.004067a0
push esi
lea edi, [esp + 0x44]
call fcn.004048e0
add esp, 4
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x64]
mov byte [esp + 0x2cc], 1
call fcn.004069b0
mov byte [esp + 0x2c4], 0
cmp dword [esp + 0x58], 8
jb 0x40e34c
mov eax, dword [esp + 0x44]
push eax
call fcn.0042c62b
add esp, 4
push ebp
lea edi, [esp + 0x98]
call fcn.004048e0
add esp, 4
xor ecx, ecx
mov byte [esp + 0x2c4], 2
push ecx
mov eax, 0x45b064
lea esi, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], cx
call fcn.00402da0
mov byte [esp + 0x2c4], 3
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x40e3a1
lea eax, [esp + 0x44]
mov edi, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x98]
call fcn.00403940
test eax, eax
mov edi, 8
setne byte [esp + 0x17]
mov byte [esp + 0x2c4], 2
cmp dword [esp + 0x58], edi
jb 0x40e3e0
mov edx, dword [esp + 0x44]
push edx
call fcn.0042c62b
add esp, 4
cmp byte [esp + 0x17], 0
je 0x40e432
mov eax, dword [esp + 0x70]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40e3f7
call fcn.0042c4d4
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x40e405
lea eax, [esp + 0x60]
cmp word [eax + esi*2], 0x5c
je 0x40e41c
push 1
mov eax, 0x45bc38
lea ecx, [esp + 0x60]
call fcn.004067a0
push 0
lea eax, [esp + 0x98]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x64]
call fcn.004069b0
push ebx
lea edi, [esp + 0x7c]
call fcn.004048e0
add esp, 4
mov ebp, 7
xor ecx, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], 0
mov word [esp + 0x28], cx
mov esi, dword [esp + 0x18]
mov bl, 5
mov byte [esp + 0x2c4], bl
mov ecx, str.STARTUP_MENU
mov eax, esi
jmp 0x40e470
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e490
test dl, dl
je 0x40e48c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e490
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e470
xor eax, eax
jmp 0x40e495
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40e583
lea edx, [esp + 0xb0]
push edx
push eax
push eax
push 0x17
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0xb0]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e4c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb4]
lea esi, [esp + 0x28]
call fcn.00402da0
push 1
mov eax, 0x45bc38
mov ecx, esi
call fcn.004067a0
mov eax, dword [esp + 0x1c]
push eax
lea edi, [esp + 0x44]
call fcn.004048e0
add esp, 4
push 0
push eax
or eax, 0xffffffff
mov byte [esp + 0x2cc], 6
call fcn.004069b0
mov esi, 8
mov byte [esp + 0x2c4], bl
cmp dword [esp + 0x58], esi
jb 0x40e531
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0042c62b
add esp, 4
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], esi
jae 0x40e53f
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [0x4726bc]
test edx, edx
je 0x40e6b4
mov ecx, dword [esp + 0x28]
mov eax, esi
cmp dword [esp + 0x3c], eax
jae 0x40e566
lea ecx, [esp + 0x28]
cmp dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
jae 0x40e577
lea eax, [esp + 0x7c]
push ecx
push eax
push str.Creating_start_menu__s_shortcut_at:__s
jmp 0x40e6ab
mov ecx, str.DESKTOP
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e5b0
test dl, dl
je 0x40e5ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e5b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e590
xor eax, eax
jmp 0x40e5b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40e626
lea edx, [esp + 0xb0]
push edx
push eax
push eax
push 0x19
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0xb0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e5d6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb4]
lea esi, [esp + 0x28]
call fcn.00402da0
mov eax, dword [0x4726bc]
test eax, eax
je 0x40e6b4
cmp dword [esp + 0x3c], 8
mov ecx, dword [esp + 0x28]
jae 0x40e612
lea ecx, [esp + 0x28]
push ecx
push str.Creating_desktop_shortcut_at:__s
push eax
call fcn.00408010
add esp, 0xc
jmp 0x40e6b4
push esi
lea edi, [esp + 0x44]
call fcn.004048e0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2cc], 7
call fcn.004028d0
mov byte [esp + 0x2c4], bl
cmp dword [esp + 0x58], 8
jb 0x40e663
mov eax, dword [esp + 0x44]
push eax
call fcn.0042c62b
add esp, 4
mov edx, dword [0x4726bc]
xor ecx, ecx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], 0
mov word [esp + 0x44], cx
test edx, edx
je 0x40e6b4
mov ecx, dword [esp + 0x28]
mov eax, 8
cmp dword [esp + 0x3c], eax
jae 0x40e693
lea ecx, [esp + 0x28]
cmp dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
jae 0x40e6a4
lea eax, [esp + 0x7c]
push ecx
push eax
push str.Creating__s_shortcut_at:__s
push edx
call fcn.00408010
add esp, 0x10
push 1
mov eax, 0x45bc38
lea ecx, [esp + 0x28]
call fcn.004067a0
push 0
lea edx, [esp + 0x7c]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x2c]
call fcn.004069b0
push 4
mov eax, str..lnk
mov ecx, esi
call fcn.004067a0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e79b
push eax
lea edi, [esp + 0x44]
call fcn.004048e0
add esp, 4
mov byte [esp + 0x2c4], 8
cmp dword [esp + 0x58], 8
mov ebx, dword [esp + 0x44]
jae 0x40e715
lea ebx, [esp + 0x44]
mov edi, dword [esp + 0x28]
mov eax, 8
cmp dword [esp + 0x3c], eax
jae 0x40e728
lea edi, [esp + 0x28]
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x74], eax
jae 0x40e736
lea ecx, [esp + 0x60]
call fcn.004050d0
mov bl, al
mov eax, dword [0x4726bc]
xor ebp, ebp
lea edi, [ebp + 8]
cmp eax, ebp
je 0x40e76d
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x40e759
lea ecx, [esp + 0x44]
push ecx
push str.With_argument:__s
push eax
call fcn.00408010
mov eax, dword [0x4726bc]
add esp, 0xc
cmp dword [esp + 0x58], edi
jb 0x40e785
mov eax, dword [esp + 0x44]
push eax
call fcn.0042c62b
mov eax, dword [0x4726bc]
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], cx
jmp 0x40e7eb
mov edi, dword [esp + 0x28]
mov eax, 8
cmp dword [esp + 0x3c], eax
jae 0x40e7ae
lea edi, [esp + 0x28]
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x74], eax
jae 0x40e7bc
lea ecx, [esp + 0x60]
xor ebx, ebx
call fcn.004050d0
mov bl, al
mov eax, dword [0x4726bc]
test eax, eax
je 0x40e82d
push str.Without_argument
push eax
call fcn.00408010
mov eax, dword [0x4726bc]
mov esi, 7
add esp, 8
lea edi, [esi + 1]
xor ebp, ebp
cmp eax, ebp
je 0x40e839
mov ecx, dword [esp + 0x28]
test bl, bl
je 0x40e812
cmp dword [esp + 0x3c], edi
jae 0x40e801
lea ecx, [esp + 0x28]
push ecx
push str.Successfully_created_shortcut_at:__s
push eax
call fcn.00408010
add esp, 0xc
jmp 0x40e839
cmp dword [esp + 0x3c], edi
jae 0x40e81c
lea ecx, [esp + 0x28]
push ecx
push str.Failed_to_created_shortcut_at:__s
push eax
call fcn.00408010
add esp, 0xc
jmp 0x40e839
mov esi, 7
mov edi, 8
xor ebp, ebp
cmp dword [esp + 0x3c], edi
jb 0x40e84c
mov edx, dword [esp + 0x28]
push edx
call fcn.0042c62b
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
cmp dword [esp + 0x90], edi
jb 0x40e871
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0042c62b
add esp, 4
xor edx, edx
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], dx
cmp dword [esp + 0xac], edi
jb 0x40e89f
mov eax, dword [esp + 0x98]
push eax
call fcn.0042c62b
add esp, 4
xor ecx, ecx
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebp
mov word [esp + 0x98], cx
cmp dword [esp + 0x74], edi
jb 0x40e8ca
mov edx, dword [esp + 0x60]
push edx
call fcn.0042c62b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a4]
xor ecx, esp
call fcn.0042c1e9
add esp, 0x2b4
ret