Function at 0x401b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417ab9
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x42100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2a9], dl
mov esi, ecx
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b0], esi
xor eax, eax
mov dword [ebp - 0x2b0], esi
push eax
mov dword [ebp - 0x2a8], 0
lea ecx, [ebp - 0x2a8]
push 0x41e2d0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00406490
xor eax, eax
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x260], 0
lea ecx, [ebp - 0x260]
push 0x41e2d0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00406490
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00408610
add esp, 0xc
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 4
push str.Temp
call fcn.00406490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
push 8
xor eax, eax
mov dword [ebp - 0x290], 0
push str.MUBSTemp
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
call fcn.00406490
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
push 1
xor eax, eax
mov dword [ebp - 0x248], 0
push 0x41e2cc
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00406490
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x2b0]
lea ecx, [ebp - 0x278]
call fcn.00405fc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
mov edi, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x278]
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x268]
sub eax, edi
mov dword [ebp - 0x2b0], ecx
cmp edx, eax
mov dword [ebp - 0x2b8], edi
ja 0x401d50
mov eax, dword [ebp - 0x2b8]
lea esi, [ebp - 0x230]
add edi, edx
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x220], edi
cmovae esi, dword [ebp - 0x230]
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x2b0]
push ecx
call fcn.00408090
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x2b4]
jmp 0x401d6b
push edx
push ecx
mov byte [ebp - 0x2b0], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x2b0]
push edx
call fcn.00405cc0
mov ecx, dword [ebp - 0x278]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x401daf
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401da5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push edx
push ecx
call fcn.00406bda
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x401df3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401de9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push edx
push ecx
call fcn.00406bda
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x401e37
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push edx
push ecx
call fcn.00406bda
add esp, 8
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x218]
push ecx
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
movzx eax, byte [ebp - 0x2a9]
push 0
push 0
lea eax, [eax*8 + 0x1c]
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
jne 0x40249b
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x280], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x27c], 7
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401ea0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x290]
call fcn.00406490
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x260]
call fcn.00405550
mov edx, dword [ebp - 0x27c]
cmp edx, 8
jb 0x401f14
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push edx
push ecx
call fcn.00406bda
add esp, 8
cmp dword [ebp - 0x250], 0
jne 0x402065
push ecx
mov edi, esp
mov dword [ebp - 0x2b0], edi
call fcn.00401340
mov ecx, eax
test ecx, ecx
je 0x4025cf
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov eax, str.__d_Failed_to_get_Installer_temp_path
mov byte [ebp - 4], 6
mov ecx, edi
test eax, 0xffff0000
jne 0x401f62
movzx eax, ax
push eax
call fcn.004057d0
jmp 0x401f6e
push 0x25
push str.__d_Failed_to_get_Installer_temp_path
call fcn.00405990
mov edx, 0xc30
mov byte [ebp - 4], 2
mov ecx, 0x76
call fcn.004041d0
add esp, 4
movups xmm0, xmmword [ebp - 0x2a8]
mov edx, dword [ebp - 0x21c]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x298]
movq qword [esi + 0x10], xmm0
cmp edx, 8
jb 0x401fef
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401fe5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push edx
push ecx
call fcn.00406bda
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov word [ebp - 0x230], ax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
cmp edx, 8
jb 0x402048
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40203e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push edx
push ecx
call fcn.00406bda
add esp, 8
mov eax, esi
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.00406958
mov esp, ebp
pop ebp
ret
push 1
xor eax, eax
mov dword [ebp - 0x278], 0
push 0x41e2cc
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.00406490
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
lea edx, [eax - 1]
cmp eax, edx
jb 0x4025c5
sub eax, edx
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x248]
lea eax, [eax + edx*2]
push eax
call fcn.00406490
cmp dword [ebp - 0x264], 8
lea ecx, [ebp - 0x278]
mov edi, dword [ebp - 0x278]
lea esi, [ebp - 0x248]
mov eax, dword [ebp - 0x248]
cmovae ecx, edi
cmp dword [ebp - 0x234], 8
mov edx, dword [ebp - 0x238]
cmovae esi, eax
cmp edx, dword [ebp - 0x268]
jne 0x402167
test edx, edx
je 0x402158
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x402161
add ecx, 2
sub edx, 1
jne 0x402141
mov eax, dword [ebp - 0x248]
mov byte [ebp - 0x2a9], 0
jmp 0x40216e
mov eax, dword [ebp - 0x248]
mov byte [ebp - 0x2a9], 1
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4021b4
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x4021aa
mov eax, dword [eax - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x2b0], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4025c0
mov eax, dword [ebp - 0x2b0]
push ecx
push eax
call fcn.00406bda
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x4021f2
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4021e8
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push ecx
push edi
call fcn.00406bda
add esp, 8
cmp byte [ebp - 0x2a9], 0
je 0x402314
push 1
xor eax, eax
mov dword [ebp - 0x248], 0
push 0x41e2cc
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00406490
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov esi, dword [ebp - 0x250]
cmovae ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x238]
sub eax, esi
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 0x2b0], esi
cmp edx, eax
ja 0x4022b5
cmp dword [ebp - 0x24c], 8
lea edi, [edx + esi]
mov eax, dword [ebp - 0x2b0]
lea esi, [ebp - 0x260]
cmovae esi, dword [ebp - 0x260]
mov dword [ebp - 0x250], edi
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x2b8]
push ecx
call fcn.00408090
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4022d0
push edx
push ecx
mov byte [ebp - 0x2b0], 0
lea ecx, [ebp - 0x260]
push dword [ebp - 0x2b0]
push edx
call fcn.00405cc0
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x402314
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40230a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push edx
push ecx
call fcn.00406bda
add esp, 8
cmp dword [ebp - 0x250], 0
jne 0x40238b
push ecx
mov esi, esp
mov dword [ebp - 0x2b0], esi
call fcn.00401340
mov ecx, eax
test ecx, ecx
je 0x4025cf
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, str.__d_Failed_to_get_Installer_temp_path
mov byte [ebp - 4], 0xa
mov ecx, esi
test eax, 0xffff0000
jne 0x40235e
movzx eax, ax
push eax
call fcn.004057d0
jmp 0x40236a
push 0x25
push str.__d_Failed_to_get_Installer_temp_path
call fcn.00405990
mov edx, 0xc30
mov byte [ebp - 4], 2
mov ecx, 0x83
call fcn.004041d0
add esp, 4
mov esi, dword [ebp - 0x2b4]
jmp 0x401f84
push 0x15
xor eax, eax
mov dword [ebp - 0x290], 0
push str.BingChatInstaller.EXE
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
call fcn.00406490
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x278]
call fcn.00405ba0
add esp, 4
lea ecx, [ebp - 0x2a8]
push eax
call fcn.00405550
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x40242f
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402425
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025ca
push edx
push ecx
call fcn.00406bda
add esp, 8
mov edx, dword [ebp - 0x27c]
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
cmp edx, 8
jb 0x402380
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402486
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025ca
push edx
push ecx
call fcn.00406bda
mov esi, dword [ebp - 0x2b4]
add esp, 8
jmp 0x401f84
push ecx
mov edi, esp
mov dword [ebp - 0x2b0], edi
call fcn.00401340
mov ecx, eax
test ecx, ecx
je 0x4025cf
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov eax, str.__d_Failed_to_Prepare_Path_variable
mov byte [ebp - 4], 9
mov ecx, edi
test eax, 0xffff0000
jne 0x4024dc
movzx eax, ax
push eax
call fcn.004057d0
jmp 0x4024e8
push 0x23
push str.__d_Failed_to_Prepare_Path_variable
call fcn.00405990
mov edx, 0xc28
mov byte [ebp - 4], 2
mov ecx, 0x7e
call fcn.004041d0
movups xmm0, xmmword [ebp - 0x2a8]
mov edx, dword [ebp - 0x21c]
add esp, 4
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x298]
movq qword [esi + 0x10], xmm0
cmp edx, 8
jb 0x402565
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40255b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c0
push edx
push ecx
call fcn.00406bda
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x402048
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40203e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40203e
call fcn.00409e97
call fcn.00405b70
call fcn.00409e97
push 0x80004005
call fcn.00401170
int3