Function at 0x406bc0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4eed
mov eax, dword fs:[0]
push eax
mov eax, 0x168c
call fcn.00450fe0
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x1450
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.005c7440
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c7440
add esp, 0x18
lea eax, [ebp - 0x1690]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406da9
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x1690]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x1690]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x662c04
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1668]
push 0x662c20
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x1670], 0
xor eax, eax
mov dword [ebp - 0x166c], 7
lea ecx, [ebp - 0x1680]
mov word [ebp - 0x1680], ax
push 7
push 0x662c2c
call fcn.00405a20
lea ecx, [ebp - 0x1668]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406cb5
mov eax, dword [ebp - 0x166c]
sub ecx, edx
mov edx, dword [ebp - 0x1670]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x406d12
cmp dword [ebp - 0x166c], 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x1680]
cmovae esi, dword [ebp - 0x1680]
lea eax, [ebp - 0x1668]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x1670], edi
lea eax, [esi + edx*2]
push eax
call fcn.005c6ec0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x406d33
push ecx
lea eax, [ebp - 0x1668]
mov byte [ebp - 0x1684], 0
push eax
push dword [ebp - 0x1684]
push ecx
lea ecx, [ebp - 0x1680]
call fcn.0040bde0
lea ecx, [ebp - 0x1668]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d40
sub ecx, edx
lea eax, [ebp - 0x1668]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x4b8]
call fcn.00405a20
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x166c]
cmp edx, 8
jb 0x406da9
mov ecx, dword [ebp - 0x1680]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406d9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ec1
push edx
push ecx
call fcn.004503b4
add esp, 8
sub esp, 0x18
lea eax, [ebx + 0x4b8]
mov ecx, esp
push eax
call fcn.00408ee0
call fcn.004066b0
add esp, 0x18
mov ecx, ebx
call fcn.00407670
push 8
call fcn.004503c2
add esp, 4
mov dword [ebp - 0x1688], eax
lea ecx, [ebp - 0x1684]
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x1698]
mov dword [ebp - 0x1684], ebx
push ecx
mov ecx, eax
mov dword [ebp - 0x1698], 0x4080c0
mov dword [ebp - 0x1694], 0
call fcn.0040b660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168c]
mov dword [ebp - 0x1688], 0
push dword [ebp - 0x1688]
mov dword [ebp - 0x168c], 0
push eax
call fcn.0040c720
mov eax, dword [ebp - 0x168c]
mov dword [ebx + 0x500], eax
mov eax, dword [ebp - 0x1688]
mov esi, dword [ebx + 0x504]
mov dword [ebx + 0x504], eax
mov dword [ebp - 4], 2
test esi, esi
je 0x406e86
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406e86
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x406e86
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push str.wizard_setup_tab
lea ecx, [ebx + 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00413599
push 1
push 1
mov ecx, eax
call fcn.004195ec
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret
call fcn.005cac9d
int3