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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2a05
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
xor esi, esi
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x290], esi
mov dword [ebp - 4], esi
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x50fe28]
cmp eax, dword [ecx + 4]
jle 0x431847
push 0x50fe28
call fcn.0048de6a
add esp, 4
cmp dword [0x50fe28], 0xffffffff
jne 0x431847
push 0x208
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x220]
push esi
push 0x24
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [0x50fe3c], esi
lea ecx, [ebp - 0x220]
mov dword [0x50fe40], 7
mov word [0x50fe2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431803
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, 0x50fe2c
call fcn.0040beb0
push 0x4d85e0
mov esi, 4
call fcn.0048dbb7
add esp, 4
mov byte [ebp - 4], 0
push 0x50fe28
call fcn.0048de20
add esp, 4
push 0x50fe2c
lea ecx, [ebp - 0x238]
call fcn.0040c040
or esi, 2
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0xc]
call fcn.00432b50
add esp, 4
lea ecx, [ebp - 0x238]
call fcn.0040c2c0
push 1
mov byte [ebp - 4], 3
call fcn.0048a7f4
add esp, 4
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 0xc]
call fcn.00432c10
add esp, 4
mov byte [ebp - 0x281], al
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x288]
test ecx, ecx
je 0x4318cc
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x4318cc
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp - 0x281], 0
je 0x4319f4
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x24
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [ebp - 0x21c], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
or esi, 8
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 7
lea edx, [ecx + 2]
mov word [ebp - 0x238], ax
mov dword [ebp - 0x290], esi
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431940
mov eax, dword [ebx + 0x1c]
sub ecx, edx
sar ecx, 1
add eax, ecx
lea ecx, [ebp - 0x238]
push eax
call fcn.0040b310
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431970
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004086c0
cmp dword [ebx + 0x20], 8
lea eax, [ebx + 0xc]
push dword [ebx + 0x1c]
cmovae eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x238]
push eax
call fcn.004086c0
lea ecx, [ebx + 0xc]
call fcn.0040c2c0
movups xmm0, xmmword [ebp - 0x238]
xor eax, eax
lea ecx, [ebp - 0x238]
mov word [ebp - 0x238], ax
movups xmmword [ebx + 0xc], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [ebx + 0x1c], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
call fcn.0040c2c0
push 1
mov byte [ebp - 4], 7
call fcn.0048a7f4
mov esi, eax
add esp, 4
mov dword [ebp - 0x288], esi
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebx + 0xc]
call fcn.00432d30
add esp, 4
mov byte [ebp - 0x281], al
mov byte [ebp - 4], 9
test esi, esi
je 0x431a49
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x431a43
mov eax, dword [ecx]
push 1
call dword [eax]
mov al, byte [ebp - 0x281]
mov byte [ebp - 4], 0
test al, al
je 0x431aed
xor eax, eax
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x224], 7
cmp eax, 4
jb 0x431b87
add eax, 0xfffffffc
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebx + 0x20], 8
lea eax, [ebx + 0xc]
cmovae eax, dword [ebx + 0xc]
push ecx
add eax, 8
lea ecx, [ebp - 0x238]
push eax
call fcn.0040beb0
lea ecx, [ebx + 0xc]
call fcn.0040c2c0
movups xmm0, xmmword [ebp - 0x238]
xor eax, eax
lea ecx, [ebp - 0x238]
mov word [ebp - 0x238], ax
movups xmmword [ebx + 0xc], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [ebx + 0x1c], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
call fcn.0040c2c0
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebp - 0x280]
call fcn.00408390
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00409770
cmp dword [esi + 0x14], 0x10
jb 0x431b11
mov esi, dword [esi]
mov ecx, esi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431b27
sub ecx, edx
push ecx
push esi
mov ecx, edi
call fcn.0040e3a0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xb
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x280]
push eax
call fcn.0048dbcc
lea ecx, [ebx + 0xc]
call fcn.0040c2c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
call fcn.0040a170
int3