Function at 0x405c20
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x63c]
sub esp, 0x63c
push 0xffffffffffffffff
push 0x55e0cd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5b9e84]
xor eax, ebp
mov dword [ebp + 0x638], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call fcn.00405150
test al, al
jne 0x405d29
mov ecx, ebx
call fcn.00404f60
mov edx, eax
mov dword [ebp], 0
mov ecx, edx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0xf
mov byte [ebp], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ca3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp]
call fcn.00406410
push 0x8e
push 0x570350
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00403720
cmp dword [ebp + 0x14], 0x10
lea eax, [ebp]
push 0
cmovae eax, dword [ebp]
push 4
push eax
call fcn.0040cee2
cmp eax, 6
jne 0x406339
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x405d29
mov ecx, dword [ebp]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40631f
push edx
push ecx
call fcn.0053fc3e
add esp, 8
mov ecx, ebx
call fcn.00404a70
test al, al
je 0x406324
mov edi, dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0
call edi
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x405e90
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp + 0x328]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x405e90
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp + 0x328]
mov ecx, ebx
push eax
call fcn.00404bd0
test al, al
je 0x40635c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov byte [ebp - 4], 2
call edi
lea eax, [ebp - 0x14]
push eax
push 0x23
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x406371
lea eax, [ebp + 0x328]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x406386
jmp 0x405dff
mov esi, 1
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x405e55
lea edi, [ebp + 0x328]
dec edi
nop dword [eax + eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405e30
mov ecx, 9
lea eax, [ebp + 0x328]
mov esi, str.MicrosoftWindowsStart_MenuPrograms
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00404bd0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x405e90
lea eax, [ebp + 0x328]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x405ea2
push 0xffffffffffffffff
push 0
push 6
call fcn.0040ce93
xor eax, eax
jmp 0x4062fc
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp + 0x328]
mov ecx, ebx
push eax
call fcn.00404bd0
test al, al
je 0x40639b
cmp dword [ebp - 0x1c], 0
jne 0x406260
lea eax, [ebp + 0x530]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor ecx, ecx
nop
mov al, byte [ebp + ecx + 0x530]
lea ecx, [ecx + 1]
mov byte [ebp + ecx + 0x21f], al
test al, al
jne 0x405ef0
lea edi, [ebp + 0x220]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x405f10
mov ax, word [0x57042c]
lea edx, [ebp + 0x220]
mov word [edi], ax
dec edx
nop word [eax + eax]
mov cl, byte [edx + 1]
lea edx, [edx + 1]
test cl, cl
jne 0x405f30
mov ecx, dword [str.SilkysPlus]
lea edi, [ebp + 0x530]
mov dword [edx], ecx
dec edi
mov ecx, dword [0x570434]
mov dword [edx + 4], ecx
mov cx, word [0x570438]
mov word [edx + 8], cx
mov cl, byte [0x57043a]
mov byte [edx + 0xa], cl
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x405f66
lea ecx, [ebp + 0x530]
mov word [edi], ax
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405f80
mov eax, dword [str.SilkysPluskimaten2]
mov dword [ecx], eax
mov eax, dword [0x570440]
mov dword [ecx + 4], eax
mov eax, dword [0x570444]
mov dword [ecx + 8], eax
mov eax, dword [0x570448]
mov dword [ecx + 0xc], eax
mov eax, dword [0x57044c]
mov dword [ecx + 0x10], eax
xor ecx, ecx
mov al, byte [ebp + ecx + 0x530]
lea ecx, [ecx + 1]
mov byte [ebp + ecx + 0x427], al
test al, al
jne 0x405fb3
lea ecx, [ebp + 0x428]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405fd0
mov eax, dword [str._save]
mov dword [ecx], eax
mov ax, word [0x570454]
mov word [ecx + 4], ax
mov ecx, ebx
call fcn.00404870
test al, al
je 0x4063b0
xor esi, esi
mov ecx, dword [ebx + 0xc8]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0xc4]
imul ecx
mov dword [ebp - 0x20], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x406172
mov eax, dword [ebx + 0xc4]
lea edi, [esi + esi*2]
shl edi, 3
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x40603a
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp + 0x11c]
push ecx
push eax
call fcn.005479a3
add esp, 0x14
call fcn.004081b3
mov ecx, eax
test ecx, ecx
je 0x4063c5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x530]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.00403d90
lea eax, [ebp + 0x428]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403d90
lea eax, [ebp + 0x11c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x18]
call fcn.00402160
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402160
push 0x57042c
lea ecx, [ebp - 0x14]
call fcn.00402160
push 0x57042c
lea ecx, [ebp - 0x1c]
call fcn.00402160
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push esi
call fcn.00550e31
add esp, 8
test eax, eax
je 0x4060ee
push dword [ebp - 0x1c]
push esi
call fcn.00550e31
add esp, 8
test eax, eax
jne 0x4060f7
cmp dword [ebx + 0xdc], 0
jne 0x40610f
mov eax, dword [ebx + 0xc4]
add eax, edi
cmp dword [eax + 0x14], 0x10
jb 0x406107
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.004042b0
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40612e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40614d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406169
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
inc esi
jmp 0x405ffc
mov edi, dword [ebx + 0xd0]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 0xd4]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x406260
xor esi, esi
nop
cmp dword [esi + edi + 0x14], 0x10
lea eax, [esi + edi]
jb 0x4061ac
mov eax, dword [eax]
lea ecx, [ebp + 0x530]
push ecx
push eax
call fcn.00550e31
add esp, 8
test eax, eax
je 0x4061e4
mov eax, dword [ebx + 0xd0]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x4061d0
mov eax, dword [eax]
lea ecx, [ebp + 0x428]
push ecx
push eax
call fcn.00550e31
add esp, 8
test eax, eax
jne 0x4061ed
cmp dword [ebx + 0xdc], 0
jne 0x406232
mov eax, dword [ebx + 0xd0]
xor edi, edi
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x4061ff
mov eax, dword [eax]
lea ecx, [ebp + 0x220]
push ecx
push eax
call fcn.00550e31
add esp, 8
test eax, eax
mov eax, 1
cmove edi, eax
mov eax, dword [ebx + 0xd0]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x406229
mov eax, dword [eax]
push edi
push eax
mov ecx, ebx
call fcn.00404330
mov ecx, dword [ebx + 0xd4]
mov eax, 0x2aaaaaab
mov edi, dword [ebx + 0xd0]
add esi, 0x18
inc dword [ebp - 0x14]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], eax
jb 0x4061a0
mov ecx, ebx
call fcn.00404460
sub eax, 0
je 0x406287
sub eax, 2
je 0x4063cf
push 0
push 0
push 0x570530
call fcn.0040cee2
xor eax, eax
jmp 0x4062fc
cmp dword [0x5be4a4], 0
je 0x4062e9
mov ecx, ebx
call fcn.00404f60
push eax
lea ecx, [ebp]
call fcn.00403ff0
push 0xd3
push 0x570458
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.00403720
cmp dword [ebp + 0x14], 0x10
lea eax, [ebp]
push 0
cmovae eax, dword [ebp]
push 4
push eax
call fcn.0040cee2
cmp eax, 6
jne 0x4062e1
mov ecx, 0x5be328
call fcn.00403440
mov ecx, ebx
call fcn.00405ba0
lea ecx, [ebp]
call fcn.00401fc0
xor eax, eax
jmp 0x4062fc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x638]
xor ecx, ebp
call fcn.0053fe9d
lea esp, [ebp + 0x63c]
pop ebp
ret
call fcn.0054457a
push 0x5a787c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 2
push eax
call fcn.0054169c
push 0
push 0
push 0x5703e0
call fcn.0040cee2
push 0x5a787c
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
call fcn.0054169c
push 0x5a787c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 3
push eax
call fcn.0054169c
push 0x5a78b0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
call fcn.0054169c
push 0x5a78b0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
call fcn.0054169c
push 0x5a787c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 3
push eax
call fcn.0054169c
push 0x5a787c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 4
push eax
call fcn.0054169c
push 0x80004005
call fcn.004022c0
push 0x5a787c
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 5
push eax
call fcn.0054169c
int3