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

Disassembly:
mov eax, 0x468db3
call fcn.00468300
sub esp, 0x2d0
mov eax, ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
add eax, 4
push edi
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x54]
push eax
call fcn.00412c8f
and dword [ebp - 4], ebx
mov esi, 0x487f58
cmp dword [0x487f6c], 0x10
cmovae esi, dword [0x487f58]
call fcn.00435f38
mov edx, esi
mov ecx, eax
call fcn.00435a97
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x411ca2
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
sub eax, esi
push 0x7c
cdq
pop ecx
idiv ecx
and dword [ebp - 0x94], ebx
test eax, eax
je 0x411c9b
and dword [ebp - 0x1c], ebx
push ecx
pop edi
push 0x208
lea eax, [ebp - 0x2dc]
push 0
push eax
call fcn.00442300
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push 0
push dword [eax + esi + 0x18]
lea eax, [ebp - 0x2dc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
and dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x6c]
and dword [ebp - 0x5c], 0
mov esi, eax
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00413c78
mov byte [ebp - 4], 1
test esi, esi
je 0x411c69
push 4
call fcn.00446ac5
mov edi, eax
pop ecx
test edi, edi
je 0x411c66
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x1c]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x411591
mov eax, dword [eax]
mov dword [edi], eax
test eax, eax
je 0x411c66
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x6c]
add eax, 0x1c
add eax, esi
push eax
call fcn.00413d45
mov eax, dword [ebp - 0x54]
mov edx, 0x479dec
add eax, esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0041480e
push ecx
test al, al
je 0x411a6a
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0041453e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
or ebx, 1
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040c85f
test al, al
je 0x411627
push ecx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0041453e
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xd4]
or ebx, 2
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040c8bb
mov byte [ebp - 0x15], 1
test al, al
jne 0x41162b
mov byte [ebp - 0x15], 0
test bl, 2
je 0x411641
and ebx, 0xfffffffd
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x70], ebx
call fcn.00413c2d
mov dword [ebp - 4], 1
test bl, 1
je 0x41165e
and ebx, 0xfffffffe
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x70], ebx
call fcn.00413c2d
cmp byte [ebp - 0x15], 0
je 0x411c66
push ecx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0041453e
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xac]
call fcn.0040c515
lea ecx, [ebp - 0x8c]
call fcn.00413c2d
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040d0e9
mov eax, dword [ebp - 0x98]
mov esi, dword [ebp - 0x9c]
and dword [ebp - 0x9c], 0
and dword [ebp - 0x98], 0
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040d0e9
mov ecx, dword [ebp - 0xb8]
xorps xmm0, xmm0
movlpd qword [ebp - 0xb4], xmm0
and dword [ebp - 0xb4], 0
and dword [ebp - 0xb0], 0
test ecx, ecx
je 0x41170e
call fcn.0040aecf
mov byte [ebp - 4], 8
test esi, esi
je 0x411a44
mov ebx, dword [ebp - 0x20]
mov ecx, esi
call fcn.0040c165
test al, al
je 0x411a20
lea eax, [ebp - 0x8c]
add esi, 0x20
push eax
mov ecx, esi
call fcn.0040b9b0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x41174f
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x54]
xor edx, edx
push ecx
push ebx
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x34
add eax, edx
push eax
call fcn.00413ee6
mov ecx, dword [ebp - 0x10]
mov edx, 0x410147
call fcn.0040cca9
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00413c2d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b9b0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x4117b1
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x54]
xor edx, edx
push ecx
push ebx
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x64
add eax, edx
push eax
call fcn.00413ee6
mov ecx, dword [ebp - 0x10]
mov edx, 0x40e62d
call fcn.0040cca9
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00413c2d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b9b0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x411813
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x54]
xor edx, edx
push ecx
push ebx
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x64
add eax, edx
push eax
call fcn.00413ee6
mov ecx, dword [ebp - 0x10]
mov edx, 0x40d9aa
call fcn.0040cca9
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00413c2d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b9b0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x411875
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x54]
xor edx, edx
push ecx
push ebx
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x4c
add eax, edx
push eax
call fcn.00413ee6
mov ecx, dword [ebp - 0x10]
mov edx, 0x40f0cd
call fcn.0040cca9
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00413c2d
cmp dword [ebp - 0x90], 0
je 0x4119bc
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b9b0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x4118e4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push ecx
push ebx
push edi
mov dl, 0x69
mov dword [ebp - 0x29], 0x1a002169
mov dword [ebp - 0x25], 0x101b061d
xor ecx, ecx
mov byte [ebp - 0x21], 0
xor byte [ebp + ecx - 0x28], dl
inc ecx
cmp ecx, 7
jae 0x41190c
mov dl, byte [ebp - 0x29]
jmp 0x4118fd
sub esp, 0x18
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.004133f0
mov ecx, dword [ebp - 0x10]
mov edx, 0x410da9
call fcn.0040cca9
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00413c2d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b9b0
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 8
jb 0x41195d
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push ecx
push ebx
push edi
mov dl, 0x2c
mov dword [ebp - 0x3d], 0x5f45642c
mov dword [ebp - 0x39], 0x555e4358
xor ecx, ecx
mov word [ebp - 0x35], 0x602
mov byte [ebp - 0x33], 0
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 9
jae 0x41198b
mov dl, byte [ebp - 0x3d]
jmp 0x41197c
sub esp, 0x18
mov byte [ebp - 0x33], 0
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.004133f0
mov ecx, dword [ebp - 0x10]
mov edx, 0x410da9
call fcn.0040cca9
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00413c2d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b9b0
mov esi, eax
mov byte [ebp - 4], 0xf
cmp dword [esi + 0x14], 8
jb 0x4119d8
mov esi, dword [esi]
mov eax, dword [ebp - 0x74]
sub esp, 0xc
add eax, 0x1c
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00412be5
mov eax, dword [ebp - 0x74]
sub esp, 0xc
add eax, 0x10
mov byte [ebp - 4], 0x10
mov ecx, esp
push eax
call fcn.00412be5
mov edx, edi
mov byte [ebp - 4], 0xf
mov ecx, esi
call fcn.0040d111
add esp, 0x18
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00413c2d
lea ecx, [ebp - 0xa4]
call fcn.0040c562
mov esi, dword [ebp - 0xa4]
test esi, esi
jne 0x41171d
mov eax, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x70]
jmp 0x411a47
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x411a52
mov ecx, eax
call fcn.0040aecf
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x411c66
call fcn.0040aecf
jmp 0x411c66
cmp dword [ebp - 0x58], 8
lea esi, [ebp - 0x6c]
push dword [ebp - 0x20]
cmovae esi, dword [ebp - 0x6c]
xor eax, eax
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 0x34
push eax
call fcn.00413ee6
mov edx, 0x410147
mov ecx, esi
call fcn.0040cca9
cmp dword [ebp - 0x58], 8
lea esi, [ebp - 0x6c]
mov eax, dword [ebp - 0x54]
cmovae esi, dword [ebp - 0x6c]
add esp, 0x20
xor edx, edx
push dword [ebp - 0x20]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x64
add eax, edx
push eax
call fcn.00413ee6
mov edx, 0x40e62d
mov ecx, esi
call fcn.0040cca9
cmp dword [ebp - 0x58], 8
lea esi, [ebp - 0x6c]
mov eax, dword [ebp - 0x54]
cmovae esi, dword [ebp - 0x6c]
add esp, 0x20
xor edx, edx
push dword [ebp - 0x20]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x64
add eax, edx
push eax
call fcn.00413ee6
mov edx, 0x40d9aa
mov ecx, esi
call fcn.0040cca9
cmp dword [ebp - 0x58], 8
lea esi, [ebp - 0x6c]
mov eax, dword [ebp - 0x54]
cmovae esi, dword [ebp - 0x6c]
add esp, 0x20
xor edx, edx
push dword [ebp - 0x20]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x4c
add eax, edx
push eax
call fcn.00413ee6
mov edx, 0x40f0cd
mov ecx, esi
call fcn.0040cca9
add esp, 0x24
cmp dword [ebp - 0x90], 0
je 0x411c22
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
mov esi, dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x6c]
xor edx, edx
push ecx
push esi
mov dword [ebp - 0x10], eax
mov cl, 0x42
push edi
mov dword [ebp - 0x32], 0x312b0a42
mov dword [ebp - 0x2e], 0x3b302d36
mov byte [ebp - 0x2a], 0
xor byte [ebp + edx - 0x31], cl
inc edx
cmp edx, 7
jae 0x411ba3
mov cl, byte [ebp - 0x32]
jmp 0x411b94
sub esp, 0x18
mov byte [ebp - 0x2a], 0
lea eax, [ebp - 0x31]
mov ecx, esp
push eax
call fcn.004133f0
mov ecx, dword [ebp - 0x10]
mov edx, 0x410da9
call fcn.0040cca9
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
mov cl, 0x30
mov dword [ebp - 0x48], 0x43597830
cmovae eax, dword [ebp - 0x6c]
add esp, 0x20
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0x44], 0x49425f44
mov word [ebp - 0x40], 0x1a1e
push esi
push edi
mov byte [ebp - 0x3e], 0
xor byte [ebp + edx - 0x47], cl
inc edx
cmp edx, 9
jae 0x411c00
mov cl, byte [ebp - 0x48]
jmp 0x411bf1
sub esp, 0x18
mov byte [ebp - 0x3e], 0
lea eax, [ebp - 0x47]
mov ecx, esp
push eax
call fcn.004133f0
mov ecx, dword [ebp - 0x10]
mov edx, 0x410da9
call fcn.0040cca9
add esp, 0x24
cmp dword [ebp - 0x58], 8
lea esi, [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
cmovae esi, dword [ebp - 0x6c]
sub esp, 0xc
add eax, 0x1c
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00412be5
mov eax, dword [ebp - 0x74]
sub esp, 0xc
add eax, 0x10
mov byte [ebp - 4], 0x11
mov ecx, esp
push eax
call fcn.00412be5
mov edx, edi
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0040d111
add esp, 0x18
push 0x7c
pop edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.00413c2d
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
sub eax, esi
cdq
idiv edi
mov ecx, dword [ebp - 0x94]
add dword [ebp - 0x1c], edi
inc ecx
mov dword [ebp - 0x94], ecx
cmp ecx, eax
jb 0x41150f
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x54]
call fcn.00413bc3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret