Function at 0x402202
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43341b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x462074]
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.00401d45
push eax
push ecx
push dword [0x438540]
lea ecx, [ebp - 0x370]
call fcn.00415519
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 - 0x318], ecx
mov edx, eax
mov ecx, eax
mov dword [ebp - 0x300], edi
and ecx, 2
mov dword [ebp - 0x30c], edi
mov dword [ebp - 0x2f8], ecx
mov ecx, eax
and ecx, 4
mov dword [ebp - 0x308], edi
mov dword [ebp - 0x328], ecx
mov ecx, eax
and ecx, 8
mov dword [ebp - 0x304], edi
mov dword [ebp - 0x330], ecx
mov ecx, eax
and ecx, 0x10
mov dword [ebp - 0x31c], ecx
mov ecx, eax
and ecx, 0x20
mov dword [ebp - 0x314], 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 - 0x318], edi
mov eax, 0x4381cc
cmove eax, ecx
test dl, 0x80
mov ecx, str.ViewProtected
cmove ecx, eax
cmp dword [ebp - 0x314], edi
mov eax, str.OpenAsReadOnly
cmove eax, ecx
cmp dword [ebp - 0x2f8], edi
mov ecx, 0x43829c
cmove ecx, eax
cmp dword [ebp - 0x31c], edi
mov eax, str.edit
cmove eax, ecx
mov ecx, esi
mov dword [ebp - 0x310], eax
call fcn.0040a1c1
test eax, eax
je 0x4023a2
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.00401c18
cmp dword [ebp - 0x328], edi
je 0x4023c0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4023b6
call fcn.00401cf4
mov ecx, ebx
call fcn.0040bc6c
mov dword [esi + 0xc], eax
cmp ebx, 0xffffffff
je 0x4023ca
cmp ebx, 9
jne 0x402448
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4023ed
xor edx, edx
cmp dword [ebp - 0x338], edx
setne dl
call fcn.0040bb9e
cmp eax, 0xffffffff
cmovne ebx, eax
mov dword [ebp - 0x324], ebx
cmp ebx, 9
jne 0x402448
mov ecx, esi
call fcn.00403dd9
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x304], edi
je 0x40240f
push dword [ebp - 0x304]
call esi
cmp dword [ebp - 0x308], edi
je 0x40241f
push dword [ebp - 0x308]
call esi
cmp dword [ebp - 0x30c], edi
je 0x40242f
push dword [ebp - 0x30c]
call esi
cmp dword [ebp - 0x300], edi
je 0x402a95
push dword [ebp - 0x300]
call esi
jmp 0x402a95
cmp dword [ebp - 0x330], edi
je 0x4025bd
mov ecx, esi
call fcn.0040553d
mov ecx, eax
mov dword [ebp - 0x328], eax
call fcn.00409fda
test eax, eax
jne 0x4025bd
mov ebx, dword [ebp - 0x328]
mov ecx, ebx
call fcn.00409f92
test eax, eax
je 0x402598
mov esi, dword [esi + 0xc]
test esi, esi
je 0x402598
push ecx
lea edx, [ebp - 0xe4]
mov ecx, esi
call fcn.004020cd
test eax, eax
je 0x4025b5
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.0040c5c8
test eax, eax
jne 0x4025b5
lea eax, [ebp - 0x30c]
mov edx, str.shell
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x300]
call fcn.0040c5c8
test eax, eax
jne 0x4025b5
mov edx, dword [ebp - 0x310]
lea eax, [ebp - 0x308]
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.0040c5c8
test eax, eax
jne 0x4025b5
lea eax, [ebp - 0x304]
mov edx, str.command
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x308]
call fcn.0040c5c8
test eax, eax
jne 0x4025b5
movzx eax, byte [ebp - 0x2f4]
xor ecx, ecx
cmp dword [ebp - 0x32c], 1
cmove eax, ecx
mov byte [ebp - 0x2f4], al
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x32c]
push eax
push edi
push edi
push dword [ebp - 0x304]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4025b5
push ecx
mov ecx, dword [ebp - 0x328]
push edi
push edi
call fcn.0040bd8c
mov edx, dword [ebp - 0x328]
lea ecx, [ebp - 0x2f4]
push eax
call fcn.00403948
jmp 0x4025b5
call fcn.0040d61d
xor ecx, ecx
mov edx, str.edit
cmp dword [ebp - 0x31c], ecx
push edi
push edi
push ebx
cmove edx, ecx
call fcn.0040d580
xor ebx, ebx
inc ebx
jmp 0x402a35
cmp ebx, 1
jne 0x40265b
cmp dword [esi + 0xc], edi
je 0x4025d7
mov ecx, dword [esi + 0xc]
call fcn.0040bc2a
cmp eax, ebx
je 0x4025ee
mov ecx, dword [esi + 8]
call fcn.00409fda
test eax, eax
jne 0x402636
mov ecx, dword [esi]
call fcn.00409fda
test eax, eax
jne 0x402636
mov ecx, dword [esi + 8]
call fcn.004021ad
test al, al
jne 0x402611
mov ecx, dword [esi]
call fcn.004021ad
test al, al
jne 0x402611
mov ecx, dword [esi + 4]
call fcn.004021ad
test al, al
je 0x40265b
cmp dword [esi + 0xc], edi
je 0x40261e
mov ecx, dword [esi + 0xc]
call fcn.00401cf4
xor edx, edx
mov ecx, str.Excel.XLL
call fcn.0040c06a
mov dword [ebp - 0x310], str.open
jmp 0x402680
cmp dword [esi + 0xc], edi
je 0x402643
mov ecx, dword [esi + 0xc]
call fcn.00401cf4
xor edx, edx
mov ecx, str.Excel.WebQuery
call fcn.0040c06a
mov dword [ebp - 0x310], str.edit
jmp 0x402680
cmp dword [esi + 0xc], edi
je 0x402679
cmp ebx, 0xffffffff
je 0x402683
mov ecx, dword [esi + 0xc]
call fcn.0040bc2a
cmp ebx, eax
je 0x402683
mov ecx, dword [esi + 0xc]
call fcn.00401cf4
mov ecx, ebx
call fcn.0040bc6c
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x31c], eax
cmp ebx, 0xffffffff
je 0x4029ba
test eax, eax
je 0x4029ba
cmp word [eax], di
je 0x4029ba
cmp ebx, 4
jne 0x4026b7
cmp dword [ebp - 0x318], edi
jne 0x4029ba
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.00401c18
push ecx
mov ecx, dword [ebp - 0x31c]
lea edx, [ebp - 0xe4]
call fcn.004020cd
test eax, eax
je 0x4029ba
cmp word [ebp - 0xe4], di
lea eax, [ebp - 0x300]
push eax
push 0x20019
lea edx, [ebp - 0xe4]
cmove edx, dword [ebp - 0x31c]
push ecx
mov ecx, Ordinal_1
call fcn.0040c5c8
test eax, eax
jne 0x4029ba
lea eax, [ebp - 0x30c]
mov edx, str.shell
push eax
push 0x20019
push ecx
mov ecx, dword [ebp - 0x300]
call fcn.0040c5c8
test eax, eax
jne 0x4029ba
cmp dword [ebp - 0x318], edi
jne 0x40284c
cmp dword [ebp - 0x2f8], edi
je 0x40279d
mov edx, dword [ebp - 0x300]
lea eax, [ebp - 0x324]
push eax
push ecx
push ecx
mov ecx, esi
call fcn.00401fb2
mov ebx, dword [ebp - 0x324]
test eax, eax
je 0x4027e6
mov edx, ebx
mov ecx, esi
call fcn.0040a0e2
test eax, eax
je 0x4027e6
push 2
pop eax
cmp ebx, eax
jne 0x4027d8
mov edx, eax
mov ecx, esi
call fcn.0040a0e2
test eax, eax
je 0x4027d8
push edi
push esi
push 2
mov edx, dword [ebp - 0x310]
mov ecx, dword [ebp - 0x300]
call fcn.00402bc0
jmp 0x4029b0
mov eax, dword [ebp - 0x320]
movzx eax, al
push eax
push esi
push ebx
jmp 0x4027c2
mov eax, dword [ebp - 0x320]
mov edx, dword [ebp - 0x310]
mov ecx, dword [ebp - 0x300]
movzx eax, al
push eax
push esi
push ebx
mov dword [ebp - 0x330], eax
call fcn.00402bc0
mov dword [ebp - 0x2fc], eax
test eax, eax
jne 0x402a2f
mov ecx, dword [ebp - 0x2f8]
test ecx, ecx
jne 0x4029c0
cmp dword [ebp - 0x314], edi
jne 0x402a2f
cmp ebx, 4
je 0x4029c8
push dword [ebp - 0x330]
mov edx, 0x437398
push esi
push ebx
jmp 0x4027c8
mov ecx, esi
call fcn.0040553d
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x2f8], edi
je 0x40297a
test eax, eax
je 0x402882
cmp word [eax], di
je 0x402882
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40297a
cmp word [eax], di
je 0x40297a
mov edx, dword [ebp - 0x310]
lea eax, [ebp - 0x308]
push eax
mov ebx, 0x20019
push ebx
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.0040c5c8
test eax, eax
jne 0x4029ba
lea eax, [ebp - 0x304]
mov edx, str.command
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x308]
call fcn.0040c5c8
test eax, eax
jne 0x4029ba
movzx eax, byte [ebp - 0x2f4]
xor ecx, ecx
cmp dword [ebp - 0x32c], 1
cmove eax, ecx
mov byte [ebp - 0x2f4], al
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x32c]
push eax
push edi
push edi
push dword [ebp - 0x304]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4029ba
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.00401c18
mov ecx, dword [ebp - 0x320]
call fcn.0040bd8c
mov edx, dword [ebp - 0x320]
push ecx
push dword [esi + 0x14]
lea ecx, [ebp - 0x2f4]
push dword [esi + 0x10]
push eax
call fcn.00403948
jmp 0x4029b0
push 2
pop eax
cmp ebx, eax
jne 0x402992
mov edx, eax
mov ecx, esi
call fcn.0040a0e2
test eax, eax
jne 0x4025b5
mov ebx, dword [ebp - 0x320]
mov edx, str.print
push ecx
push dword [ebp - 0x318]
mov ecx, dword [ebp - 0x300]
push ebx
call fcn.004038ac
mov dword [ebp - 0x2fc], eax
test eax, eax
jne 0x402a2f
mov ecx, dword [ebp - 0x2f8]
cmp dword [ebp - 0x314], edi
jne 0x402a2f
cmp dword [ebp - 0x33c], edi
jne 0x402a2f
cmp dword [ebp - 0x318], edi
je 0x4029dd
push 2
pop ebx
jmp 0x4029eb
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 - 0x314], bl
mov edx, esi
push dword [ebp - 0x314]
mov ecx, str.Default_Editor
call fcn.00403f30
test eax, eax
jne 0x402a2f
push edi
push edi
push edi
push dword [ebp - 0x314]
mov edx, esi
mov ecx, str.Old_Default_Editor
call fcn.00403f30
test eax, eax
jne 0x402a2f
cmp bl, 2
je 0x402a2f
mov ecx, esi
call fcn.00403dd9
mov ebx, dword [ebp - 0x2fc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x304], edi
je 0x402a4b
push dword [ebp - 0x304]
call esi
mov dword [ebp - 0x304], edi
cmp dword [ebp - 0x308], edi
je 0x402a61
push dword [ebp - 0x308]
call esi
mov dword [ebp - 0x308], edi
cmp dword [ebp - 0x30c], edi
je 0x402a77
push dword [ebp - 0x30c]
call esi
mov dword [ebp - 0x30c], edi
cmp dword [ebp - 0x300], edi
je 0x402a8d
push dword [ebp - 0x300]
call esi
mov dword [ebp - 0x300], edi
mov edi, ebx
lea ecx, [ebp - 0x370]
call fcn.00415566
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.0043182e
leave
ret 4