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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b340
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00423150
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [edi + 0x164], 7
lea eax, [edi + 0x150]
jbe 0x421fd3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x59b300
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
sub esp, 8
lea ecx, [ebp - 0x218]
mov edx, esp
lea esi, [ecx + 2]
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422010
sub ecx, esi
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0040b6c0
mov ecx, edi
call fcn.0041ef70
xorps xmm0, xmm0
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x424], 0
movups xmmword [ebp - 0x438], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422060
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.0040b6c0
cmp dword [ebp - 0x424], 7
lea edx, [ebp - 0x438]
mov esi, dword [ebp - 0x428]
cmova edx, dword [ebp - 0x438]
mov dword [ebp - 4], 0
test esi, esi
je 0x4220d3
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x4220cd
nop dword [eax]
cmp ecx, edx
je 0x4220d3
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4220c0
sub ecx, edx
sar ecx, 1
jmp 0x4220d6
or ecx, 0xffffffff
mov dword [ebp - 0x440], 0
xorps xmm0, xmm0
mov dword [ebp - 0x43c], 0
movups xmmword [ebp - 0x450], xmm0
cmp esi, ecx
jb 0x42224d
sub esi, ecx
lea eax, [ebp - 0x438]
cmp esi, 0xffffffff
mov edx, 0xffffffff
cmovb edx, esi
cmp dword [ebp - 0x424], 7
push edx
cmova eax, dword [ebp - 0x438]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040b6c0
mov ecx, dword [ebp - 0x424]
cmp ecx, 7
jbe 0x42216d
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422163
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422252
push ecx
push edx
call fcn.0055241f
add esp, 8
movups xmm1, xmmword [ebp - 0x450]
lea ecx, [ebp - 0x438]
movq xmm0, qword [ebp - 0x440]
movd eax, xmm1
movq qword [ebp - 0x428], xmm0
cmp dword [ebp - 0x424], 7
movups xmmword [ebp - 0x438], xmm1
cmova ecx, eax
lea eax, [ebp - 0x218]
push ecx
push 0x104
push eax
call fcn.00562c0c
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4221c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x170]
call fcn.00418d10
mov ecx, edi
call fcn.00421b30
mov ecx, dword [ebp - 0x424]
mov dword [edi + 0x394], eax
cmp ecx, 7
jbe 0x42222b
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422221
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422252
push ecx
push edx
call fcn.0055241f
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e44
mov esp, ebp
pop ebp
ret 4
call fcn.00410b30
call fcn.0055bf8b
int3