Function at 0x436c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b72d1
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4d57fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x20c], edi
xor eax, eax
mov dword [ebp - 0x1f8], 0
push 0xc
mov dword [ebp - 0x184], 0
push str.LocalAppData
mov dword [ebp - 4], 0
mov dword [ebp - 0x1fc], edi
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 7
mov word [ebp - 0x184], ax
call fcn.00408a50
movups xmm0, xmmword [0x4c2ffc]
movups xmmword [ebp - 0x16c], xmm0
push 0xf
xor eax, eax
mov dword [ebp - 0x15c], 0
push str.LocalAppDataLow
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
call fcn.00408a50
movups xmm0, xmmword [0x4c21fc]
movups xmmword [ebp - 0x144], xmm0
push 0xe
xor eax, eax
mov dword [ebp - 0x134], 0
push str.RoamingAppData
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 7
mov word [ebp - 0x134], ax
call fcn.00408a50
movups xmm0, xmmword [0x4c2d2c]
movups xmmword [ebp - 0x11c], xmm0
push 0xb
xor eax, eax
mov dword [ebp - 0x10c], 0
push str.ProgramData
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 3
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
call fcn.00408a50
movups xmm0, xmmword [0x4c29ec]
movups xmmword [ebp - 0xf4], xmm0
push 0xc
xor eax, eax
mov dword [ebp - 0xe4], 0
push str.ProgramFiles
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
call fcn.00408a50
movups xmm0, xmmword [0x4c2f6c]
movups xmmword [ebp - 0xcc], xmm0
push 0xb
xor eax, eax
mov dword [ebp - 0xbc], 0
push str.UserProfile
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 5
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
call fcn.00408a50
movups xmm0, xmmword [0x4c271c]
movups xmmword [ebp - 0xa4], xmm0
push 9
xor eax, eax
mov dword [ebp - 0x94], 0
push str.Documents
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
call fcn.00408a50
movups xmm0, xmmword [0x4c1d4c]
movups xmmword [ebp - 0x7c], xmm0
lea esi, [ebp - 0x184]
mov dword [ebp - 4], 7
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x1e8], esi
push 0x38
lfence
call fcn.00461526
add esp, 4
mov dword [ebp - 0x210], eax
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1f4], eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
cmp esi, ecx
je 0x436fdc
lea edi, [esi + 0x18]
mov dword [ebp - 0x1ec], edi
nop dword [eax]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.004354e0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
test al, al
jne 0x436fb2
cmp dword [ebp - 0x1f0], 0x4924924
je 0x4372da
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x1f4]
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x204], 0
push 0x38
lfence
call fcn.00461526
mov edi, eax
add esp, 4
mov dword [ebp - 0x204], edi
push dword [ebp - 0x1e8]
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 0xa
call fcn.0041caf0
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1f4]
push edi
push dword [ebp - 0x34]
mov byte [ebp - 4], 8
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x200]
push dword [ebp - 0x38]
movups xmmword [edi + 0x28], xmm0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
mov dword [ebp - 0x204], 0
call fcn.00438070
mov esi, dword [ebp - 0x1e8]
mov edi, dword [ebp - 0x1ec]
add esi, 0x28
lea eax, [ebp - 0x6c]
add edi, 0x28
mov dword [ebp - 0x1e8], esi
mov dword [ebp - 0x1ec], edi
cmp esi, eax
je 0x436fd6
mov eax, dword [ebp - 0x210]
jmp 0x436ee0
mov edi, dword [ebp - 0x1fc]
push 0x436940
push 7
push 0x28
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 0xc
push eax
call fcn.0046205e
mov dword [edi], 0
mov dword [edi + 4], 0
push 0x40
lfence
call fcn.00461526
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov esi, dword [ebp - 0x1f4]
mov eax, 1
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1f8], eax
mov esi, dword [esi]
mov dword [ebp - 0x1ec], esi
nop
cmp byte [esi + 0xd], 0
jne 0x437291
lea edi, [esi + 0x10]
push edi
lea ecx, [ebp - 0x6c]
call fcn.0041caf0
movups xmm0, xmmword [edi + 0x18]
movups xmmword [ebp - 0x54], xmm0
lea eax, [ebp - 0x200]
mov dword [ebp - 0x200], 0
push eax
push 0
push 0
lea eax, [ebp - 0x54]
push eax
call sub.SHELL32.dll_SHGetKnownFolderPath
mov edi, dword [ebp - 0x200]
mov ecx, eax
mov eax, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x204], edi
mov byte [ebp - 4], 0x10
test ecx, ecx
js 0x4372df
mov ecx, edi
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4370c1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00408a50
mov eax, dword [ebp - 0x1e8]
or eax, 2
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 0x16
test edi, edi
je 0x4370fe
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x1fc]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 0xf
push eax
call fcn.00435a80
mov edi, dword [eax]
lea eax, [ebp - 0x2c]
add edi, 0x28
cmp edi, eax
je 0x437189
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x43715d
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x437153
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437375
mov eax, edx
push ecx
push eax
call fcn.00461556
add esp, 8
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov edx, 7
movups xmmword [edi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
jmp 0x43718c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1e8]
and eax, 0xfffffffd
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1f8], eax
cmp edx, 8
jb 0x437202
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4371d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437375
push edx
push ecx
call fcn.00461556
add esp, 8
jmp 0x437202
mov edx, dword [ebp - 0x58]
mov dword [ebp - 4], 0xc
cmp edx, 8
jb 0x437243
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437239
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43737a
push edx
push ecx
call fcn.00461556
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x437272
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x437265
cmp esi, dword [eax + 8]
jne 0x437265
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x437255
mov esi, eax
mov dword [ebp - 0x1ec], eax
jmp 0x437040
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x437038
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x437280
jmp 0x437038
mov eax, dword [ebp - 0x1f4]
push dword [eax + 4]
lea eax, [ebp - 0x1f4]
push eax
mov ecx, eax
call fcn.00435490
push 0x38
push dword [ebp - 0x1f4]
call fcn.00461556
mov eax, dword [ebp - 0x1fc]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00461564
mov esp, ebp
pop ebp
ret
call fcn.0041f840
push ecx
lea eax, [ebp - 0x44]
push eax
lfence
call fcn.0042e410
add esp, 8
mov esi, eax
push dword [ebp - 0x54]
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 0x11
push eax
call fcn.0041b490
add esp, 8
push eax
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 0x12
push str.Failed_to_get_known_folder
push eax
call fcn.00419ce0
add esp, 0xc
push str._path:
push eax
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 0x13
push eax
call fcn.00427490
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x1e4]
lfence
push eax
mov byte [ebp - 4], 0x14
call fcn.004203c0
add esp, 0xc
lfence
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x15
call fcn.0041a290
push 0x4ce944
lea eax, [ebp - 0x220]
push eax
call fcn.00463df0
call fcn.0046d841
call fcn.0046d841
int3