Function at 0x45f720
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x270
push ebx
push esi
push edi
mov ebx, ecx
cmp eax, 0x111
ja 0x460164
je 0x45f9d1
cmp eax, 0x4e
je 0x45f9a2
cmp eax, 0x110
jne 0x4604f7
mov esi, dword [ebp + 8]
push 0
push 0x420
push 0x420
push esi
mov byte [0x50dbbc], 1
call fcn.0045f720
push 0x966
push esi
call fcn.00420d20
push 0x967
push esi
mov edi, eax
call fcn.00420d20
mov dword [ebp + 8], eax
mov eax, dword [0x50b39c]
add eax, 0x1b4
push eax
lea ecx, [ebp - 0x270]
push str._s_0
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
test edi, edi
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
je 0x45f7db
push 0
push 0x10966
push 0x111
push esi
mov ecx, ebx
mov byte [0x50dbbc], 0
call fcn.0045f720
mov byte [0x50dbbc], 1
jmp 0x45f84e
push str.ConEmu_Inside
push 0x966
push esi
call edi
push str.shell
push 0x951
push esi
call edi
push str.powershell__cur_console:n
push 0x952
push esi
call edi
push str.powershell.exe
push 0x950
push esi
call edi
mov eax, dword [0x50b39c]
cmp dword [eax + 0x4238], 0
je 0x45f830
mov edx, dword [eax + 0x4238]
cmp byte [edx + 9], 0
je 0x45f830
mov eax, 1
jmp 0x45f832
xor eax, eax
push eax
push 0x95d
push esi
call fcn.00450a00
add esp, 0xc
push 0x4c1318
push 0x9af
push esi
call edi
cmp dword [ebp + 8], 0
je 0x45f878
push 0
push 0x10967
push 0x111
push esi
mov ecx, ebx
mov byte [0x50dbbc], 0
call fcn.0045f720
mov byte [0x50dbbc], 1
jmp 0x45f8ae
push str.ConEmu_Here
push 0x967
push esi
call edi
push 0x4c1318
push 0x956
push esi
call edi
push str.cmd__cur_console:n
push 0x957
push esi
call edi
lea eax, [ebp - 0x270]
push eax
push 0x955
push esi
call edi
mov ecx, dword [0x50b3a0]
movzx edx, byte [ecx + 0xa6c]
mov ebx, dword [sym.imp.USER32.dll_CheckDlgButton]
push edx
push 0x9d3
push esi
call ebx
mov eax, dword [0x50b3a0]
cmp byte [eax + 0xa6d], 0
jne 0x45f8f5
mov ecx, dword [0x50b39c]
mov ecx, dword [ecx + 0x4248]
push 0
push 0
call fcn.004296c0
test al, al
jne 0x45f8f5
xor eax, eax
jmp 0x45f8fa
mov eax, 1
push eax
push 0x9f3
push esi
call ebx
mov edx, dword [0x50b3a0]
movzx eax, byte [edx + 0xa6e]
push eax
push 0x9d6
push esi
call ebx
mov ecx, dword [0x50b3a0]
movzx edx, byte [ecx + 0xa6f]
add edx, 0x9d7
push edx
push 0x9d9
push 0x9d7
push esi
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov ecx, dword [0x50b3a0]
call fcn.00443640
mov ebx, eax
push ebx
push 0x9d4
push esi
call edi
push 0x2c
push ebx
call fcn.004b03ac
add esp, 8
test eax, eax
je 0x45f983
push 0x7c
push ebx
call fcn.004b03ac
add esp, 8
test eax, eax
jne 0x45f983
push 4
push str.List_of_hooked_executables_must_be_delimited_with____but_not_commas
mov ecx, 0x50dcf0
call fcn.004975a0
test ebx, ebx
je 0x45f990
push ebx
call fcn.00441300
add esp, 4
pop edi
pop esi
mov byte [0x50dbbc], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0xfffffdee
jne 0x4604f7
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0x4e
push ecx
mov ecx, dword [0x50b3a4]
call fcn.0044f740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shr eax, 0x10
xor esi, esi
sub eax, esi
je 0x45fef8
sub eax, 1
je 0x45fadf
sub eax, 0x2ff
jne 0x4604f7
movzx eax, cx
sub eax, 0x9af
je 0x45fa7f
sub eax, 0x25
jne 0x4604f7
cmp byte [0x50dbbc], al
jne 0x4604f7
mov ebx, dword [ebp + 8]
push 0x9d4
push ebx
call fcn.00420d20
mov edi, eax
add esp, 8
cmp edi, esi
je 0x45fa3b
cmp word [edi], si
jne 0x45fa57
push edi
call fcn.00441300
add esp, 4
push str.explorer.exe
call fcn.00441380
add esp, 4
mov edi, eax
push edi
push 0x9d4
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [0x50b3a0]
push edi
call fcn.00443740
cmp edi, esi
je 0x4604f7
push edi
call fcn.00441300
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x50b39c]
cmp dword [eax + 0x4238], esi
je 0x4604f7
mov edx, dword [eax + 0x4238]
mov eax, dword [edx + 0xc]
cmp eax, esi
je 0x45fab4
push eax
call fcn.00441300
mov eax, dword [0x50b39c]
mov ecx, dword [eax + 0x4238]
add esp, 4
mov dword [ecx + 0xc], esi
mov edx, dword [ebp + 8]
push 0x9af
push edx
call fcn.00420d20
mov ecx, dword [0x50b39c]
mov edx, dword [ecx + 0x4238]
add esp, 8
pop edi
pop esi
mov dword [edx + 0xc], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
movzx ebx, cx
lea eax, [ebx - 0x966]
cmp eax, 1
ja 0x4604f7
cmp byte [0x50dbbc], 0
jne 0x4604f7
mov ecx, dword [ebp + 8]
push esi
push esi
push 0x147
push ebx
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edi, eax
cmp edi, esi
jl 0x45fdeb
mov edx, dword [ebp + 8]
push 0
push edi
push 0x149
push ebx
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov dword [ebp + 0x14], eax
sub eax, 0xffffff80
push 2
push eax
mov dword [ebp - 4], eax
call fcn.004412c0
add esp, 8
cmp dword [ebp + 0x14], 0
mov esi, eax
jle 0x45fdeb
test esi, esi
je 0x45fdeb
mov eax, dword [ebp - 4]
push str.Directory_shell_
push eax
push esi
call fcn.00401800
mov eax, esi
lea edx, [eax + 2]
jmp 0x45fb80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45fb80
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
lea ecx, [esi + eax*2]
push ecx
push edi
push 0x148
push ebx
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push esi
push SysReAllocString
mov dword [ebp - 0x18], 0
call edi
test eax, eax
jne 0x45fdeb
push 1
push 0x412
mov dword [ebp - 0x28], 0x410
call fcn.004412c0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push ecx
push esi
lea edx, [ebp - 0x1c]
push edx
push 0
push str.Icon
push eax
mov dword [ebp + 0xc], esi
call ebx
test eax, eax
jne 0x45fc0d
cmp dword [ebp - 0x1c], 1
je 0x45fc1f
test esi, esi
je 0x45fc1f
push esi
call fcn.00441300
add esp, 4
xor esi, esi
mov dword [ebp + 0xc], esi
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push 0x4d9a10
push edx
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x45fdd8
push 1
push 0x1042
mov dword [ebp - 0x20], 0x1040
call fcn.004412c0
mov edx, dword [ebp - 4]
add esp, 8
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push edx
mov dword [ebp - 0x10], edi
call ebx
test eax, eax
jne 0x45fdba
cmp dword [ebp - 0x1c], 1
jne 0x45fdba
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp + 0x14]
push edx
mov dword [ebp + 0x14], edi
mov dword [ebp - 0x24], edi
call fcn.004044b0
add esp, 0xc
test eax, eax
jne 0x45fdce
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, 0x2f
jmp 0x45fcc0
cmp word [ebp - 0x234], di
jne 0x45fd77
push str._inside
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x45fd77
push 8
lea ecx, [ebp - 0x234]
push 0x4ce78c
push ecx
call fcn.00441e90
add esp, 0xc
test eax, eax
jne 0x45fd11
lea edx, [ebp - 0x224]
push edx
call fcn.00441380
add esp, 4
mov dword [ebp - 0xc], eax
jmp 0x45fd77
push str._config
lea eax, [ebp - 0x234]
push eax
call esi
lea ecx, [ebp - 0x234]
test eax, eax
jne 0x45fd53
push eax
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.004044b0
add esp, 0xc
test eax, eax
jne 0x45fdce
lea eax, [ebp - 0x234]
push eax
call fcn.00441380
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x45fd77
push str._dir
push ecx
call esi
test eax, eax
jne 0x45fd98
push eax
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp + 0x14]
push eax
call fcn.004044b0
add esp, 0xc
test eax, eax
jne 0x45fdce
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp + 0x14]
push eax
call fcn.004044b0
add esp, 0xc
test eax, eax
je 0x45fcc0
jmp 0x45fdce
push str._cmd
lea ecx, [ebp - 0x234]
push ecx
call esi
test eax, eax
jne 0x45fdb2
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], edx
jmp 0x45fdce
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
jmp 0x45fdce
test esi, esi
je 0x45fdce
push esi
call fcn.00441300
add esp, 4
mov dword [ebp + 0xc], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jne 0x45fdf0
mov eax, 0x4c1318
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
xor ecx, ecx
mov eax, 0x966
cmp si, ax
setne cl
dec ecx
and ecx, 0xfffffffb
add ecx, 0x956
push ecx
push ebx
call edi
mov eax, dword [ebp - 8]
test eax, eax
jne 0x45fe24
mov eax, 0x4c1318
push eax
xor eax, eax
mov edx, 0x966
cmp si, dx
setne al
dec eax
and eax, 0xfffffffb
add eax, 0x957
push eax
push ebx
call edi
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
jne 0x45fe4d
mov eax, 0x4c1318
xor edx, edx
mov ecx, 0x966
cmp si, cx
setne dl
push eax
dec edx
and edx, 0xfffffffb
add edx, 0x955
push edx
push ebx
call edi
mov eax, 0x966
cmp si, ax
mov esi, dword [ebp - 0xc]
jne 0x45feac
mov eax, esi
test esi, esi
jne 0x45fe81
mov eax, 0x4c1318
push eax
push 0x9af
push ebx
call edi
test esi, esi
je 0x45fe9b
cmp word [esi], 0
je 0x45fe9b
mov eax, 1
jmp 0x45fe9d
xor eax, eax
push eax
push 0x95d
push ebx
call fcn.00450a00
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45febc
push eax
call fcn.00441300
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45fecc
push eax
call fcn.00441300
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45fedc
push eax
call fcn.00441300
add esp, 4
test esi, esi
je 0x4604f7
push esi
call fcn.00441300
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
movzx ecx, ax
add ecx, 0xfffff6ad
mov byte [ebp + 0x17], 0
mov byte [ebp + 0xf], 0
cmp ecx, 0xa0
ja case.0x45ff22.2389
movzx ecx, byte [ecx + 0x460524]
jmp dword [ecx*4 + 0x460504]
mov edx, dword [0x50b39c]
cmp dword [edx + 0x4238], 0
je case.0x45ff22.2389
push eax
push esi
call fcn.00450a20
mov ecx, dword [0x50b39c]
mov edx, dword [ecx + 0x4238]
add esp, 8
test eax, eax
setne al
mov byte [edx + 9], al
jmp case.0x45ff22.2389
mov ecx, 0x953
cmp ax, cx
sete dl
push 0
movzx eax, dl
push eax
push 0
push esi
mov ecx, ebx
call fcn.00458570
push 0
push 0x420
push 0x420
push esi
mov ecx, ebx
call fcn.0045f720
jmp case.0x45ff22.2389
mov ecx, 0x958
cmp ax, cx
sete dl
push 0
movzx eax, dl
push eax
push 1
push esi
mov ecx, ebx
call fcn.00458570
push 0
push 0x420
push 0x420
push esi
mov ecx, ebx
call fcn.0045f720
jmp case.0x45ff22.2389
push 0x9d3
push esi
call fcn.00450a20
mov edx, dword [0x50b3a0]
add esp, 8
test eax, eax
setne cl
mov byte [edx + 0xa6c], cl
mov eax, dword [0x50b3a0]
mov cl, byte [eax + 0xa6c]
mov byte [ebp + 0xf], cl
jmp 0x46008b
push 0x9f3
push esi
call fcn.00450a20
add esp, 8
test eax, eax
je 0x460068
mov edx, dword [0x50b3a0]
cmp byte [edx + 0xa6c], 0
jne 0x460059
mov eax, dword [0x50bb90]
push eax
push 0
push 4
push str.Default_Terminal_feature_was_not_enabled._Enable_it_now_
call fcn.00420020
add esp, 0x10
cmp eax, 6
jne case.0x45ff22.2389
mov ecx, dword [0x50b3a0]
push 1
push 0x9d3
push esi
mov byte [ecx + 0xa6c], 1
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov byte [ebp + 0x17], 1
mov byte [ebp + 0xf], 1
mov edx, dword [0x50b3a0]
mov byte [edx + 0xa6d], 1
jmp 0x460074
mov eax, dword [0x50b3a0]
mov byte [eax + 0xa6d], 0
mov ecx, dword [0x50b39c]
mov ecx, dword [ecx + 0x4248]
call fcn.00429740
cmp byte [ebp + 0x17], 0
je case.0x45ff22.2389
mov ecx, dword [0x50b39c]
call fcn.00417e40
mov edx, dword [0x50b3a0]
cmp byte [edx + 0xa6c], 0
je 0x4604f7
cmp byte [ebp + 0xf], 0
je 0x4604f7
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x180
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [0x50b39c]
mov ecx, dword [eax + 0x4248]
push 1
push 1
call fcn.0042a1b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x9d6
push esi
call fcn.00450a20
add esp, 8
test eax, eax
mov eax, dword [0x50b3a0]
setne dl
mov byte [eax + 0xa6e], dl
jmp 0x46008b
push 0x9d7
push esi
call fcn.00450a20
add esp, 8
test eax, eax
je 0x46013e
mov ecx, dword [0x50b3a0]
xor eax, eax
mov byte [ecx + 0xa6f], al
jmp 0x46008b
push 0x9d8
push esi
call fcn.00450a20
mov ecx, dword [0x50b3a0]
add esp, 8
neg eax
sbb eax, eax
add eax, 2
mov byte [ecx + 0xa6f], al
jmp 0x46008b
sub eax, 0x420
je 0x460233
sub eax, 1
jne 0x4604f7
cmp dword [ebp + 0x10], 0x421
jne 0x4604f7
mov ebx, dword [ebp + 8]
push 0x96b
push ebx
xor esi, esi
call fcn.00450a20
add esp, 8
lea ecx, [ebp + 8]
push ecx
push 0x20019
push esi
push str.SoftwareMicrosoftCommand_Processor
push SysReAllocString
mov edi, eax
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4601f8
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.0044ec90
mov esi, eax
add esp, 8
test esi, esi
je 0x4601e8
cmp word [esi], 0
je 0x4601e8
push str._GHWNDNEW
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov edi, eax
neg edi
sbb edi, edi
neg edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
test esi, esi
jne 0x4601fd
mov eax, 0x4c1318
push eax
push 0x95a
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
push 0x96b
push ebx
call dword [sym.imp.USER32.dll_CheckDlgButton]
test esi, esi
je 0x4604f7
push esi
call fcn.00441300
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x10], 0x420
jne 0x4604f7
push 2
push 0xffff
mov dword [ebp + 0xc], 0
call fcn.004412c0
add esp, 8
mov dword [ebp + 0x14], eax
test eax, eax
je 0x4604f7
mov edi, dword [ebp + 8]
push 0x966
push edi
call fcn.00420d20
mov esi, eax
push 0x967
push edi
mov dword [ebp + 0x10], esi
call fcn.00420d20
mov cl, byte [0x50dbbc]
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
add esp, 0x10
push 0
push 0
push 0x14b
push 0x966
push edi
mov dword [ebp - 4], eax
mov byte [ebp + 0xb], cl
mov byte [0x50dbbc], 1
call ebx
push 0
push 0
push 0x14b
push 0x967
push edi
call ebx
lea edx, [ebp + 0xc]
push edx
push 0x20019
push 0
push str.Directory_shell
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x460460
mov dword [ebp - 8], eax
push 0x248
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.004b03e0
mov eax, dword [ebp - 8]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x270]
push edx
push eax
push ecx
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x460453
lea eax, [ebp - 0x270]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460332
push str.command
sub eax, edx
push 0x124
lea edx, [ebp - 0x270]
sar eax, 1
push edx
mov esi, eax
call fcn.00401880
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x270]
push ecx
push edx
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x460441
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [ebp - 0x10], 0x1fffa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x460437
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
push str._inside
xor ecx, ecx
push eax
mov word [ebp + esi*2 - 0x270], cx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov edx, dword [ebp + 0x14]
push str.conemu
push edx
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x460437
lea eax, [ebp - 0x270]
push eax
mov ecx, esi
neg ecx
push 0
sbb ecx, ecx
push 0x143
add ecx, 0x967
push ecx
push edi
call ebx
mov eax, dword [ebp + 0x10]
test esi, esi
jne 0x46040c
mov eax, dword [ebp - 4]
test eax, eax
jne 0x460437
test esi, esi
je 0x460425
lea edx, [ebp - 0x270]
push edx
call fcn.00441380
mov dword [ebp + 0x10], eax
jmp 0x460434
lea eax, [ebp - 0x270]
push eax
call fcn.00441380
mov dword [ebp - 4], eax
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x200
jb 0x4602e3
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
mov eax, esi
test esi, esi
jne 0x46046b
mov eax, 0x4c1318
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
push 0x966
push edi
call esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x460496
cmp word [eax], 0
je 0x460496
push eax
push 0x966
push edi
call fcn.00450b90
add esp, 0xc
mov ebx, dword [ebp - 4]
mov eax, ebx
test ebx, ebx
jne 0x4604a4
mov eax, 0x4c1318
push eax
push 0x967
push edi
call esi
test ebx, ebx
je 0x4604c6
cmp word [ebx], 0
je 0x4604c6
push ebx
push 0x967
push edi
call fcn.00450b90
add esp, 0xc
mov al, byte [ebp + 0xb]
mov byte [0x50dbbc], al
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4604de
push eax
call fcn.00441300
add esp, 4
test ebx, ebx
je 0x4604eb
push ebx
call fcn.00441300
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00441300
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10