Function at 0x407a00
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7e07
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x50b0cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea esi, [ecx + 0x258]
cmp dword [0x5112b8], 8
mov edx, 0x5112a4
cmovae edx, dword [0x5112a4]
cmp dword [esi + 0x14], 8
jb 0x407a71
mov eax, dword [esi]
jmp 0x407a73
mov eax, esi
push edx
push eax
lea eax, [ebp - 0x2d8]
push 0x4e91c0
push eax
call fcn.00414c90
add esp, 0x10
mov edi, eax
lea eax, [ebp - 0x230]
cmp eax, edi
je 0x407adc
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x407ab3
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x21c], 7
push edi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00409830
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c4]
cmp eax, 8
jb 0x407afe
inc eax
lea ecx, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2d8]
call fcn.00404050
lea ecx, [ebp - 0x2d8]
call fcn.00413590
mov byte [ebp - 4], 2
mov edi, 0x5112ec
cmp dword [0x511300], 8
mov ecx, edi
cmovae ecx, dword [0x5112ec]
cmp dword [eax + 0x14], 8
jb 0x407b2a
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x2a8]
push str._s_s_
push eax
call fcn.00414c90
add esp, 0x10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c4]
cmp eax, 8
jb 0x407b62
inc eax
lea ecx, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2d8]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x2c4], 7
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
call fcn.00413330
mov byte [ebp - 4], 5
mov ecx, edi
cmp dword [0x511300], 8
cmovae ecx, dword [0x5112ec]
cmp dword [eax + 0x14], 8
jb 0x407ba6
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x290]
push str._s_s.lnk
push eax
call fcn.00414c90
add esp, 0x10
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x407bde
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x2ac], 7
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
call fcn.00413590
mov byte [ebp - 4], 8
mov ebx, edi
cmp dword [0x511300], 8
mov edx, edi
mov dword [ebp - 0x2dc], edi
cmovae ebx, dword [0x5112ec]
cmovae edx, dword [0x5112ec]
cmp dword [eax + 0x14], 8
jb 0x407c31
mov eax, dword [eax]
push ebx
push edx
push eax
lea eax, [ebp - 0x278]
push str._s_s_s.lnk
push eax
call fcn.00414c90
add esp, 0x14
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2c4]
cmp eax, 8
jb 0x407c6a
inc eax
lea ecx, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2d8]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x2c4], 7
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
call fcn.00413590
mov byte [ebp - 4], 0xb
cmp dword [0x511300], 8
cmovae edi, dword [0x5112ec]
cmp dword [eax + 0x14], 8
jb 0x407cac
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0x260]
push str._s_sUninst.lnk
push eax
call fcn.00414c90
add esp, 0x10
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x407ce4
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x2ac], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
jb 0x407d09
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x248]
push 0x4e9230
push eax
call fcn.00414c90
add esp, 0xc
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2a8]
cmp dword [ebp - 0x294], 8
cmovae eax, dword [ebp - 0x2a8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp - 0x27c], 8
lea edx, [ebp - 0x290]
mov dword [ebp - 0x2c4], 7
cmovae edx, dword [ebp - 0x290]
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
cmp word [edx], ax
jne 0x407d8c
xor ecx, ecx
jmp 0x407da0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d91
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2d8]
call fcn.004033e0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x2ac], 7
cmovae edx, dword [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
cmp word [edx], ax
jne 0x407deb
xor ecx, ecx
jmp 0x407dff
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407df0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c0]
call fcn.004033e0
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x2dc], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x407e41
mov eax, dword [ecx]
jmp 0x407e43
mov eax, ecx
xor edx, edx
push edx
push 0x4e924c
mov word [eax], dx
call fcn.004033e0
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x407e82
mov eax, dword [ecx]
jmp 0x407e84
mov eax, ecx
xor edx, edx
push edx
push 0x4e9250
mov word [eax], dx
call fcn.004033e0
push ecx
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.00408d40
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x407eca
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00404050
xor eax, eax
mov byte [ebp - 4], 0xe
mov word [ebp - 0x2c0], ax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], 0
cmp eax, 8
jb 0x407f09
inc eax
lea ecx, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2d8]
call fcn.00404050
cmp dword [ebp - 0x264], 8
lea edx, [ebp - 0x278]
mov dword [ebp - 0x2c4], 7
cmovae edx, dword [ebp - 0x278]
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
cmp word [edx], ax
jne 0x407f43
xor ecx, ecx
jmp 0x407f5f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2d8]
call fcn.004033e0
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x2ac], 7
cmovae edx, dword [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
cmp word [edx], ax
jne 0x407faa
xor ecx, ecx
jmp 0x407fbf
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407fb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c0]
call fcn.004033e0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x2e0], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x408001
mov eax, dword [ecx]
jmp 0x408003
mov eax, ecx
xor edx, edx
push edx
push 0x4e9254
mov word [eax], dx
call fcn.004033e0
sub esp, 0x18
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x408042
mov eax, dword [ecx]
jmp 0x408044
mov eax, ecx
xor edx, edx
push edx
push 0x4e9258
mov word [eax], dx
call fcn.004033e0
push ecx
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.00408d40
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40808a
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00404050
xor eax, eax
mov byte [ebp - 4], 0xe
mov word [ebp - 0x2c0], ax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], 0
cmp eax, 8
jb 0x4080c9
inc eax
lea ecx, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2d8]
call fcn.00404050
cmp dword [ebp - 0x24c], 8
lea edx, [ebp - 0x260]
mov dword [ebp - 0x2c4], 7
cmovae edx, dword [ebp - 0x260]
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
cmp word [edx], ax
jne 0x408103
xor ecx, ecx
jmp 0x40811f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408110
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2d8]
call fcn.004033e0
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x2ac], 7
cmovae edx, dword [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
cmp word [edx], ax
jne 0x40816a
xor ecx, ecx
jmp 0x40817f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408170
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c0]
call fcn.004033e0
sub esp, 0x18
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x2e0], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x4081c1
mov eax, dword [ecx]
jmp 0x4081c3
mov eax, ecx
xor edx, edx
push edx
push 0x4e925c
mov word [eax], dx
call fcn.004033e0
sub esp, 0x18
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x408202
mov eax, dword [ecx]
jmp 0x408204
mov eax, ecx
xor edx, edx
push edx
push 0x4e9260
mov word [eax], dx
call fcn.004033e0
push ecx
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.00408d40
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40824a
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2b0], 0
cmp eax, 8
jb 0x408285
inc eax
lea ecx, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2d8]
call fcn.00404050
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4082a3
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x4082de
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x408319
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x408354
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x40838f
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x298], 0
cmp eax, 8
jb 0x4083ca
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488d6f
mov esp, ebp
pop ebp
ret