Function at 0x4021eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438bba
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
lea ecx, [ebp - 0x35c]
mov dword [ebp - 0x324], ebx
call fcn.00401d46
push eax
push ecx
push dword [0x43d4b0]
lea ecx, [ebp - 0x370]
call fcn.00415376
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x334], 0x208
inc edx
xor edi, edi
and ecx, edx
mov dword [ebp - 0x2fc], edi
mov dword [ebp - 0x31c], ecx
mov edx, eax
mov ecx, eax
mov dword [ebp - 0x300], edi
and ecx, 2
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x2f8], ecx
mov ecx, eax
and ecx, 4
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x304], ecx
mov ecx, eax
and ecx, 8
mov dword [ebp - 0x308], edi
mov dword [ebp - 0x32c], ecx
mov ecx, eax
and ecx, 0x10
mov dword [ebp - 0x330], ecx
mov ecx, eax
and ecx, 0x20
mov dword [ebp - 0x318], ecx
mov ecx, eax
and ecx, 0x40
mov dword [ebp - 0x338], ecx
mov ecx, eax
and ecx, 0x200
mov dword [ebp - 0x33c], ecx
mov ecx, eax
shr ecx, 0xb
not cl
and ecx, 0xffffff01
test eax, 0x100
mov dword [ebp - 0x320], ecx
mov eax, str.open
mov ecx, str.Show
cmove ecx, eax
cmp dword [ebp - 0x31c], edi
mov eax, 0x43d14c
cmove eax, ecx
test dl, 0x80
mov ecx, str.ViewProtected
cmove ecx, eax
cmp dword [ebp - 0x318], edi
mov eax, str.OpenAsReadOnly
cmove eax, ecx
cmp dword [ebp - 0x2f8], edi
mov ecx, 0x43d21c
cmove ecx, eax
cmp dword [ebp - 0x330], edi
mov eax, str.edit
cmove eax, ecx
mov ecx, esi
mov dword [ebp - 0x314], eax
call fcn.00409fc4
test eax, eax
je 0x40238b
xor eax, eax
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov word [ebp - 0x340], ax
mov edx, 0x851
lea eax, [ebp - 0x34c]
mov dword [ebp - 0x348], str.Param
push eax
push dword [esi + 8]
mov ecx, 0x170a8c9
mov dword [ebp - 0x344], str.Original_File_Name
push 0xc8
call fcn.00401c4f
cmp dword [ebp - 0x304], edi
je 0x4023ac
cmp dword [esi + 0xc], edi
je 0x4023a2
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, ebx
call fcn.0040b88a
mov dword [esi + 0xc], eax
cmp ebx, 0xffffffff
je 0x4023b6
cmp ebx, 9
jne 0x402434
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4023d9
xor edx, edx
cmp dword [ebp - 0x338], edx
setne dl
call fcn.0040b7bc
cmp eax, 0xffffffff
cmovne ebx, eax
mov dword [ebp - 0x324], ebx
cmp ebx, 9
jne 0x402434
mov ecx, esi
call fcn.00403e8e
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x308], edi
je 0x4023fb
push dword [ebp - 0x308]
call esi
cmp dword [ebp - 0x30c], edi
je 0x40240b
push dword [ebp - 0x30c]
call esi
cmp dword [ebp - 0x310], edi
je 0x40241b
push dword [ebp - 0x310]
call esi
cmp dword [ebp - 0x300], edi
je 0x402aa4
push dword [ebp - 0x300]
call esi
jmp 0x402aa4
cmp dword [ebp - 0x32c], edi
je 0x4025a9
mov ecx, esi
call fcn.00405498
mov ecx, eax
mov dword [ebp - 0x304], eax
call fcn.00409ddd
test eax, eax
jne 0x4025a9
mov ebx, dword [ebp - 0x304]
mov ecx, ebx
call fcn.00409d95
test eax, eax
je 0x402584
mov esi, dword [esi + 0xc]
test esi, esi
je 0x402584
push ecx
lea edx, [ebp - 0xe4]
mov ecx, esi
call fcn.004020b6
test eax, eax
je 0x4025a1
cmp word [ebp - 0xe4], di
lea eax, [ebp - 0x300]
push eax
mov ebx, 0x20019
lea edx, [ebp - 0xe4]
push ebx
push ecx
cmove edx, esi
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x4025a1
lea eax, [ebp - 0x310]
mov edx, str.shell
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x300]
call fcn.0040c1f1
test eax, eax
jne 0x4025a1
mov edx, dword [ebp - 0x314]
lea eax, [ebp - 0x30c]
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x310]
call fcn.0040c1f1
test eax, eax
jne 0x4025a1
lea eax, [ebp - 0x308]
mov edx, str.command
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.0040c1f1
test eax, eax
jne 0x4025a1
movzx eax, byte [ebp - 0x2f4]
xor ecx, ecx
cmp dword [ebp - 0x328], 1
cmove eax, ecx
mov byte [ebp - 0x2f4], al
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x328]
push eax
push edi
push edi
push dword [ebp - 0x308]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4025a1
push ecx
mov ecx, dword [ebp - 0x304]
push edi
push edi
call fcn.0040b9b7
mov edx, dword [ebp - 0x304]
lea ecx, [ebp - 0x2f4]
push eax
call fcn.004039fd
jmp 0x4025a1
call fcn.0040d231
xor ecx, ecx
mov edx, str.edit
cmp dword [ebp - 0x330], ecx
push edi
push edi
push ebx
cmove edx, ecx
call fcn.0040d19a
xor ebx, ebx
inc ebx
jmp 0x402a44
cmp ebx, 1
jne 0x40264b
cmp dword [esi + 0xc], edi
je 0x4025c3
mov ecx, dword [esi + 0xc]
call fcn.0040b848
cmp eax, ebx
je 0x4025da
mov ecx, dword [esi + 8]
call fcn.00409ddd
test eax, eax
jne 0x402624
mov ecx, dword [esi]
call fcn.00409ddd
test eax, eax
jne 0x402624
mov ecx, dword [esi + 8]
call fcn.00402196
test al, al
jne 0x4025fd
mov ecx, dword [esi]
call fcn.00402196
test al, al
jne 0x4025fd
mov ecx, dword [esi + 4]
call fcn.00402196
test al, al
je 0x40264b
cmp dword [esi + 0xc], edi
je 0x40260c
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor edx, edx
mov ecx, str.Excel.XLL
call fcn.0040bc95
mov dword [ebp - 0x314], str.open
jmp 0x402687
cmp dword [esi + 0xc], edi
je 0x402633
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor edx, edx
mov ecx, str.Excel.WebQuery
call fcn.0040bc95
mov dword [ebp - 0x314], str.edit
jmp 0x402687
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x402680
mov eax, ecx
mov dword [ebp - 0x304], eax
cmp ebx, 0xffffffff
je 0x4029c9
mov dword [ebp - 0x304], ecx
call fcn.0040b848
cmp ebx, eax
je 0x4027dc
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, ebx
call fcn.0040b88a
mov dword [esi + 0xc], eax
mov dword [ebp - 0x304], eax
cmp ebx, 0xffffffff
je 0x4029c9
test eax, eax
je 0x4029c9
cmp word [eax], di
je 0x4029c9
cmp ebx, 4
jne 0x4026bb
cmp dword [ebp - 0x31c], edi
jne 0x4029c9
mov dword [ebp - 0x344], eax
mov edx, 0x851
xor eax, eax
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov word [ebp - 0x340], ax
mov ecx, 0x170a8cb
lea eax, [ebp - 0x34c]
mov dword [ebp - 0x348], str.Param
push eax
push str.FHevActivateApp:
push 0x64
call fcn.00401c4f
push ecx
mov ecx, dword [ebp - 0x304]
lea edx, [ebp - 0xe4]
call fcn.004020b6
test eax, eax
je 0x4029c9
cmp word [ebp - 0xe4], di
lea eax, [ebp - 0x300]
push eax
push 0x20019
lea edx, [ebp - 0xe4]
cmove edx, dword [ebp - 0x304]
push ecx
mov ecx, Ordinal_1
call fcn.0040c1f1
test eax, eax
jne 0x4029c9
lea eax, [ebp - 0x310]
mov edx, str.shell
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x300]
call fcn.0040c1f1
test eax, eax
jne 0x4029c9
cmp dword [ebp - 0x31c], edi
jne 0x40285b
cmp dword [ebp - 0x2f8], edi
je 0x4027a1
mov edx, dword [ebp - 0x300]
lea eax, [ebp - 0x324]
push eax
push ecx
push ecx
mov ecx, esi
call fcn.00401f97
mov ebx, dword [ebp - 0x324]
test eax, eax
je 0x4027f5
mov edx, ebx
mov ecx, esi
call fcn.00409ee5
test eax, eax
je 0x4027f5
push 2
pop eax
cmp ebx, eax
jne 0x4027e7
mov edx, eax
mov ecx, esi
call fcn.00409ee5
test eax, eax
je 0x4027e7
push edi
push esi
push 2
mov edx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x300]
call fcn.00402bc8
jmp 0x4029bf
mov eax, dword [ebp - 0x304]
jmp 0x402690
mov eax, dword [ebp - 0x320]
movzx eax, al
push eax
push esi
push ebx
jmp 0x4027c6
mov eax, dword [ebp - 0x320]
mov edx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x300]
movzx eax, al
push eax
push esi
push ebx
mov dword [ebp - 0x32c], eax
call fcn.00402bc8
mov dword [ebp - 0x2fc], eax
test eax, eax
jne 0x402a3e
mov ecx, dword [ebp - 0x2f8]
test ecx, ecx
jne 0x4029cf
cmp dword [ebp - 0x318], edi
jne 0x402a3e
cmp ebx, 4
je 0x4029d7
push dword [ebp - 0x32c]
mov edx, 0x43c308
push esi
push ebx
jmp 0x4027cc
mov ecx, esi
call fcn.00405498
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x2f8], edi
je 0x402989
test eax, eax
je 0x402891
cmp word [eax], di
je 0x402891
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402989
cmp word [eax], di
je 0x402989
mov edx, dword [ebp - 0x314]
lea eax, [ebp - 0x30c]
push eax
mov ebx, 0x20019
push ebx
push ecx
mov ecx, dword [ebp - 0x310]
call fcn.0040c1f1
test eax, eax
jne 0x4029c9
lea eax, [ebp - 0x308]
mov edx, str.command
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.0040c1f1
test eax, eax
jne 0x4029c9
movzx eax, byte [ebp - 0x2f4]
xor ecx, ecx
cmp dword [ebp - 0x328], 1
cmove eax, ecx
mov byte [ebp - 0x2f4], al
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x328]
push eax
push edi
push edi
push dword [ebp - 0x308]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4029c9
lea eax, [ebp - 0x2f4]
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0x344], eax
mov edx, 0x851
xor eax, eax
mov dword [ebp - 0x348], str.Param
mov word [ebp - 0x340], ax
mov ecx, 0x170a8cc
lea eax, [ebp - 0x34c]
push eax
push str.FHevActivateApp:_Before_FSimpleSpawn_with
push 0x64
call fcn.00401c4f
mov ecx, dword [ebp - 0x320]
call fcn.0040b9b7
mov edx, dword [ebp - 0x320]
push ecx
push dword [esi + 0x14]
lea ecx, [ebp - 0x2f4]
push dword [esi + 0x10]
push eax
call fcn.004039fd
jmp 0x4029bf
push 2
pop eax
cmp ebx, eax
jne 0x4029a1
mov edx, eax
mov ecx, esi
call fcn.00409ee5
test eax, eax
jne 0x4025a1
mov ebx, dword [ebp - 0x320]
mov edx, str.print
push ecx
push dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x300]
push ebx
call fcn.0040395e
mov dword [ebp - 0x2fc], eax
test eax, eax
jne 0x402a3e
mov ecx, dword [ebp - 0x2f8]
cmp dword [ebp - 0x318], edi
jne 0x402a3e
cmp dword [ebp - 0x33c], edi
jne 0x402a3e
cmp dword [ebp - 0x31c], edi
je 0x4029ec
push 2
pop ebx
jmp 0x4029fa
xor eax, eax
inc eax
test ecx, ecx
push 3
movzx ebx, al
pop edx
cmovne ebx, edx
push edi
push edi
push edi
mov byte [ebp - 0x318], bl
mov edx, esi
push dword [ebp - 0x318]
mov ecx, str.Default_Editor
call fcn.00403fe6
test eax, eax
jne 0x402a3e
push edi
push edi
push edi
push dword [ebp - 0x318]
mov edx, esi
mov ecx, str.Old_Default_Editor
call fcn.00403fe6
test eax, eax
jne 0x402a3e
cmp bl, 2
je 0x402a3e
mov ecx, esi
call fcn.00403e8e
mov ebx, dword [ebp - 0x2fc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x308], edi
je 0x402a5a
push dword [ebp - 0x308]
call esi
mov dword [ebp - 0x308], edi
cmp dword [ebp - 0x30c], edi
je 0x402a70
push dword [ebp - 0x30c]
call esi
mov dword [ebp - 0x30c], edi
cmp dword [ebp - 0x310], edi
je 0x402a86
push dword [ebp - 0x310]
call esi
mov dword [ebp - 0x310], edi
cmp dword [ebp - 0x300], edi
je 0x402a9c
push dword [ebp - 0x300]
call esi
mov dword [ebp - 0x300], edi
mov edi, ebx
lea ecx, [ebp - 0x370]
call fcn.004153c3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004370bb
leave
ret 4