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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1234
call fcn.00463310
mov eax, dword [0x4a0590]
xor eax, esp
mov dword [esp + 0x1230], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0044c4ef
mov edi, eax
mov dword [esp + 0xc], edi
call fcn.00408bbd
mov edx, eax
mov eax, dword [ebp + 8]
mov ebx, 0x427
cmp eax, ebx
jg 0x451f35
je 0x451ec8
sub eax, 0x3ef
je 0x451ebc
sub eax, 0x2d
je 0x451e98
dec eax
je 0x451e84
sub eax, 9
jne 0x4522fb
call fcn.004498ef
test eax, eax
jne 0x451e5f
mov eax, esi
call fcn.00452312
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esi + 0xc]
mov edi, eax
call ebx
push edi
mov edi, 0x477f20
call fcn.0044956d
pop ecx
push 1
push dword [esi + 0xc]
call ebx
mov eax, esi
call fcn.00452366
push 0
push 0x426
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov edi, dword [esp + 0xc]
mov esi, dword [esi + 0xc]
mov ebx, dword [edi]
push 0x426
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
neg eax
sbb al, al
inc al
movzx eax, al
push eax
mov ecx, edi
call dword [ebx]
jmp 0x4522fb
push str.http:__b1.org_policy.jsp
push dword [esi + 0xc]
call fcn.0040aa91
pop ecx
pop ecx
jmp 0x4522fb
mov esi, dword [esi + 0xc]
push 0
push 0x451be7
push esi
push 0x86
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x4522fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
jmp 0x4522fb
call fcn.004498ef
test eax, eax
jne 0x451f13
mov eax, esi
call fcn.00452312
push 0
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
mov edi, 0x477f20
call fcn.0044956d
pop ecx
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, esi
call fcn.00452366
push 0
push ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov esi, dword [edi]
push ebx
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
neg eax
sbb al, al
inc al
movzx eax, al
push eax
mov ecx, edi
call dword [esi + 4]
jmp 0x4522fb
mov ecx, eax
mov eax, 0x428
sub ecx, eax
je 0x4522de
sub ecx, 0x1b
je 0x4521e3
dec ecx
je 0x452108
dec ecx
jne 0x4522fb
push 8
xor eax, eax
pop ecx
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
push str.IDC_BROWSE_DIALOG_CAPTION
mov eax, edx
call fcn.00408c18
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0x143
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
cmp edi, ebx
je 0x4520ba
xor eax, eax
push 0x206
mov word [esp + 0x34], ax
lea eax, [esp + 0x36]
push ebx
push eax
call fcn.0045f360
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4522fb
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
push 0xffe
mov word [esp + 0x23c], ax
lea eax, [esp + 0x23e]
push ebx
push eax
call fcn.0045f360
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x23c]
push 0x800
push eax
call fcn.00455d11
lea eax, [esp + 0x3c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x45201a
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
mov edi, 0x104
je 0x452048
push 0x47ef90
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00455d80
add esp, 0xc
push 0x486de0
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00455d80
add esp, 0xc
lea edi, [esp + 0x238]
call fcn.00447b6c
test al, al
jne 0x4520c6
push ebx
mov eax, edi
push eax
push str.Not_enough_rights_to_write_into_the_selected_folder.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004498ef
test eax, eax
jne 0x4520b3
push ebx
push dword [esi + 0xc]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
mov eax, esi
call fcn.00452312
push eax
mov edi, 0x477f20
call fcn.0044956d
pop ecx
push 1
push dword [esi + 0xc]
call ebx
mov eax, esi
call fcn.00452366
jmp 0x4520ba
mov dword [esi + 0x4c], 2
mov eax, esi
call fcn.00451d41
jmp 0x4522fb
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea eax, [esp + 0x30]
push eax
push 0x419
push dword [esi + 0xc]
call edi
lea eax, [esp + 0x30]
push eax
push 0x445
push dword [esi + 0xc]
call edi
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x10]
add eax, 0x28
push eax
call fcn.004095cb
mov dword [esi + 0x4c], 3
jmp 0x4522fb
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x240], ax
lea eax, [esp + 0x242]
push eax
call fcn.0045f360
add esp, 0xc
call fcn.004498de
test eax, eax
je 0x452179
mov edi, dword [sym.imp.USER32.dll_CheckDlgButton]
push 0
push 0x426
push dword [esi + 0xc]
call edi
push 0
push ebx
push dword [esi + 0xc]
call edi
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x426
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0xc]
push 0
push ebx
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edi, dword [esp + 0xc]
push 0
push 0x1c
lea eax, [esp + 0x240]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4522fb
push 0x47ef90
mov ebx, 0x400
lea eax, [esp + 0x23c]
push ebx
push eax
call fcn.00455d80
add esp, 0xc
push 0x486de0
lea eax, [esp + 0x23c]
push ebx
push eax
call fcn.00455d80
add esp, 0xc
lea eax, [esp + 0x238]
push eax
add edi, 0x28
push edi
call fcn.004095cb
mov dword [esi + 0x4c], 2
jmp 0x4522fb
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x240], ax
lea eax, [esp + 0x242]
push eax
call fcn.0045f360
add esp, 0xc
call fcn.004498de
test eax, eax
je 0x452250
mov edi, dword [sym.imp.USER32.dll_CheckDlgButton]
push 1
push 0x426
push dword [esi + 0xc]
call edi
push 1
push ebx
push dword [esi + 0xc]
call edi
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x426
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0xc]
push 1
push ebx
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x26
lea eax, [esp + 0x240]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4522fb
lea edi, [esp + 0x238]
call fcn.00447b6c
test al, al
jne 0x45228f
call fcn.004498ef
test eax, eax
jne 0x4520ba
push eax
jmp 0x452085
push 0x47ef90
mov ebx, 0x400
lea eax, [esp + 0x23c]
push ebx
push eax
call fcn.00455d80
add esp, 0xc
push 0x486de0
lea eax, [esp + 0x23c]
push ebx
push eax
call fcn.00455d80
add esp, 0xc
lea eax, [esp + 0x238]
push eax
mov eax, dword [esp + 0x10]
add eax, 0x28
push eax
call fcn.004095cb
mov dword [esi + 0x4c], 1
jmp 0x4522fb
mov esi, dword [esi + 0xc]
mov ebx, dword [edi]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
neg eax
sbb al, al
inc al
movzx eax, al
push eax
mov ecx, edi
call dword [ebx + 8]
mov ecx, dword [esp + 0x123c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00453655
mov esp, ebp
pop ebp
ret 4