Function at 0x46f3b0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd3c9
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x50f52c]
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
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x688], eax
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x67c], eax
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x670], eax
mov eax, dword [edi + 4]
xor ebx, ebx
push eax
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x68c], ebx
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x68c]
push ecx
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x67c], 0x41
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
push 0x206
mov esi, eax
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.004b32f0
add esp, 0xc
cmp esi, ebx
je 0x46f955
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x510a04]
mov edx, dword [ecx + 0x180]
push 6
add ecx, 0x16c
push str.64_bit
push edx
push ebx
lea esi, [ebx + 1]
call fcn.00401fe0
test eax, eax
jne 0x46f664
push 0x206
lea ecx, [ebp - 0x41e]
push ebx
push ecx
mov word [ebp - 0x420], ax
call fcn.004b32f0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x46f662
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46f4f0
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [ebp - 0x420]
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46f510
sub eax, esi
sar eax, 1
cmp edx, eax
jne 0x46f53b
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004b562d
add esp, 8
jmp 0x46f586
push 0x104
lea edx, [ebp - 0x420]
push 0x4e3448
push edx
call fcn.004b5d74
lea eax, [ebp - 0x420]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46f560
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004b5cce
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp esi, ebx
jne 0x46f664
push str.TOOLBARPAGE
lea ecx, [ebp - 0x66c]
call fcn.004019e0
mov dword [ebp - 4], ebx
push str.64_bit_path_is_not_allowed.
lea ecx, [ebp - 0x64c]
call fcn.004019e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x66c]
push edx
lea eax, [ebp - 0x64c]
push eax
call fcn.00419d40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64c]
call fcn.00490320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x66c]
call fcn.00490320
mov esi, dword [0x510a08]
sub esp, 0x1c
mov edi, esp
add esi, 0x84
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x630]
push 0x402
push ecx
call fcn.004285a0
mov dword [ebp - 4], 2
mov eax, dword [eax]
add esp, 8
mov ecx, esp
mov dword [ebp - 0x650], esp
push eax
call fcn.004019e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x62c]
mov eax, dword [edx + 4]
push eax
mov byte [ebp - 4], 2
call fcn.00454f00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x630]
call fcn.0041c0e0
mov edi, dword [ebp - 0x62c]
xor esi, esi
push 0x206
lea edx, [ebp - 0x626]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x628], cx
call fcn.004b32f0
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push 1
push ebx
push 0x24
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x46f73f
lea eax, [ebp - 0x628]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46f6a6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004b5cce
add esp, 0xc
test eax, eax
jne 0x46f73f
push str.CUSTOMPAGE
lea ecx, [ebp - 0x66c]
call fcn.004019e0
mov dword [ebp - 4], 4
push str.System_path_is_not_allowed.
lea ecx, [ebp - 0x64c]
call fcn.004019e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x64c]
push ecx
call fcn.00419d40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64c]
call fcn.00490320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x66c]
call fcn.00490320
mov edx, dword [edi + 4]
push 0x401
push edx
call fcn.00454c60
xor esi, esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x46f818
push str.CUSTOMPAGE
lea ecx, [ebp - 0x64c]
call fcn.004019e0
mov dword [ebp - 4], 6
push str.Network_path_is_not_allowed.
lea ecx, [ebp - 0x66c]
call fcn.004019e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64c]
push ecx
lea edx, [ebp - 0x66c]
push edx
call fcn.00419d40
mov byte [ebp - 4], 6
mov esi, 8
cmp dword [ebp - 0x654], esi
jb 0x46f7b2
mov eax, dword [ebp - 0x668]
push eax
call fcn.004b29fa
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0x654], edi
mov dword [ebp - 0x658], ebx
mov word [ebp - 0x668], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x634], esi
jb 0x46f7ea
mov edx, dword [ebp - 0x648]
push edx
call fcn.004b29fa
add esp, 4
mov ecx, dword [ebp - 0x62c]
mov edx, dword [ecx + 4]
push 0x404
xor eax, eax
push edx
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x638], ebx
mov word [ebp - 0x648], ax
call fcn.00454c60
jmp 0x46f955
cmp esi, ebx
je 0x46f955
mov ecx, dword [0x510a08]
lea eax, [ebp - 0x218]
add ecx, 0x1b8
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x46f835
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401860
mov ecx, dword [0x510a08]
add ecx, 0x12c
push ecx
lea edx, [ebp - 0x64c]
push 0x4e3448
push edx
call fcn.00401a30
add esp, 0xc
mov esi, 8
mov dword [ebp - 4], esi
mov ecx, dword [0x510a08]
push 0xffffffffffffffff
push ebx
add ecx, 0x1b8
push eax
call fcn.00401500
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x634], esi
jb 0x46f8ad
mov eax, dword [ebp - 0x648]
push eax
call fcn.004b29fa
add esp, 4
mov eax, dword [0x510a08]
sub esp, 0x1c
xor ecx, ecx
mov dword [ebp - 0x650], esp
mov word [ebp - 0x648], cx
mov ecx, esp
mov edx, 7
push 0xffffffffffffffff
mov dword [ecx + 0x18], edx
mov dword [ebp - 0x634], edx
add eax, 0x1b8
push ebx
xor edx, edx
mov dword [ecx + 0x14], ebx
push eax
mov dword [ebp - 0x638], ebx
mov word [ecx + 4], dx
call fcn.00401750
mov dword [ebp - 4], 9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x630], esp
push str.LOCATION
call fcn.004019e0
mov byte [ebp - 4], 0xa
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x510a08]
call fcn.0041ca80
mov eax, dword [0x510a08]
cmp dword [eax + 0x1d0], esi
jb 0x46f938
mov esi, dword [eax + 0x1bc]
jmp 0x46f93e
lea esi, [eax + 0x1bc]
mov eax, dword [edi + 4]
push 0x3fe
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
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.004b3057
mov esp, ebp
pop ebp
ret 0x10