Function at 0x402529
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f3a6
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x45b070]
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 edi, ecx
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x32c], edi
call fcn.004020b2
push eax
push ecx
push dword [0x434580]
lea ecx, [ebp - 0x34c]
call fcn.0040d9da
mov eax, dword [ebp + 8]
xor edx, edx
inc edx
mov dword [ebp - 0x334], 0x208
mov ecx, eax
and ecx, edx
mov edx, eax
mov dword [ebp - 0x31c], ecx
push 2
pop ecx
and edx, ecx
mov dword [ebp - 0x338], ecx
mov ecx, eax
mov dword [ebp - 0x2f8], edx
and ecx, 4
xor edx, edx
mov dword [ebp - 0x300], ecx
mov ebx, edx
mov ecx, eax
mov dword [ebp - 0x2fc], edx
and ecx, 8
mov dword [ebp - 0x30c], edx
mov dword [ebp - 0x328], ecx
mov ecx, eax
and ecx, 0x10
mov dword [ebp - 0x308], edx
mov dword [ebp - 0x320], ecx
mov ecx, eax
and ecx, 0x20
mov dword [ebp - 0x304], edx
mov dword [ebp - 0x310], ecx
mov edx, eax
mov ecx, eax
mov dword [ebp - 0x318], ebx
and ecx, 0x40
mov dword [ebp - 0x350], ecx
mov ecx, eax
and ecx, 0x200
mov dword [ebp - 0x354], ecx
mov ecx, eax
shr ecx, 0xb
not cl
and ecx, 0xffffff01
test eax, 0x100
mov dword [ebp - 0x324], ecx
mov eax, str.Show
mov ecx, str.open
cmove eax, ecx
cmp dword [ebp - 0x31c], ebx
mov ecx, 0x4341fc
cmove ecx, eax
and dl, 0x80
mov eax, str.ViewProtected
cmove eax, ecx
cmp dword [ebp - 0x310], ebx
mov ecx, str.OpenAsReadOnly
cmove ecx, eax
cmp dword [ebp - 0x2f8], ebx
mov eax, 0x4342cc
cmove eax, ecx
cmp dword [ebp - 0x320], ebx
mov ecx, str.edit
cmove ecx, eax
mov dword [ebp - 0x314], ecx
mov ecx, esi
call fcn.0040a1c4
test eax, eax
je 0x4026d4
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 - 0x358], ax
mov edx, 0x851
lea eax, [ebp - 0x364]
mov dword [ebp - 0x360], str.Param
push eax
push dword [esi + 8]
mov dword [ebp - 0x35c], str.Original_File_Name
push ecx
push 0xc8
mov ecx, 0x170a8c9
call fcn.00401f81
cmp dword [ebp - 0x300], ebx
je 0x4026f2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4026e8
call fcn.00402061
mov ecx, edi
call fcn.0040b6ff
mov dword [esi + 0xc], eax
cmp edi, 0xffffffff
je 0x402706
mov dword [ebp - 0x300], edi
cmp edi, 9
jne 0x4027f8
mov ecx, dword [esi + 0xc]
mov eax, edi
mov dword [ebp - 0x300], eax
test ecx, ecx
je 0x402744
xor edx, edx
cmp dword [ebp - 0x350], edx
setne dl
call fcn.0040b631
mov ecx, eax
mov eax, edi
mov dword [ebp - 0x300], eax
cmp ecx, 0xffffffff
je 0x402744
mov edi, ecx
mov dword [ebp - 0x300], ecx
mov dword [ebp - 0x32c], edi
mov eax, ecx
cmp eax, 9
jne 0x4027f8
mov ecx, esi
call fcn.00404225
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x304], ebx
je 0x40276a
push dword [ebp - 0x304]
call esi
cmp dword [ebp - 0x308], ebx
je 0x40277a
push dword [ebp - 0x308]
call esi
cmp dword [ebp - 0x30c], ebx
je 0x40278a
push dword [ebp - 0x30c]
call esi
cmp dword [ebp - 0x2fc], ebx
je 0x40279a
push dword [ebp - 0x2fc]
call esi
cmp byte [ebp - 0x34c], bl
je 0x4027f1
mov ecx, dword [ebp - 0x33c]
call fcn.0040d5c1
mov esi, eax
test esi, esi
je 0x4027f1
cmp byte [ebp - 0x344], bl
je 0x4027d7
mov ecx, dword [ebp - 0x33c]
call fcn.0040d5c1
test eax, eax
je 0x4027d7
mov ecx, dword [ebp - 0x340]
mov edx, eax
call fcn.0040d940
push dword [ebp - 0x33c]
xor cl, cl
call fcn.0040f990
mov ecx, dword [ebp - 0x348]
mov edx, esi
call fcn.0040d940
xor eax, eax
jmp 0x402e75
cmp dword [ebp - 0x328], ebx
je 0x402969
mov ecx, esi
call fcn.00405724
mov ecx, eax
mov dword [ebp - 0x328], eax
call fcn.00409ec1
test eax, eax
jne 0x402969
mov edi, dword [ebp - 0x328]
mov ecx, edi
call fcn.00409d93
test eax, eax
je 0x402942
mov esi, dword [esi + 0xc]
test esi, esi
je 0x402942
push ecx
lea edx, [ebp - 0xe4]
mov ecx, esi
call fcn.00402454
test eax, eax
je 0x402961
cmp word [ebp - 0xe4], bx
lea eax, [ebp - 0x2fc]
push eax
mov ebx, 0x20019
lea edx, [ebp - 0xe4]
push ebx
push ecx
cmove edx, esi
mov ecx, Ordinal_1
call fcn.0040c046
test eax, eax
jne 0x402961
lea eax, [ebp - 0x30c]
mov edx, str.shell
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x2fc]
call fcn.0040c046
test eax, eax
jne 0x402961
mov edx, dword [ebp - 0x314]
lea eax, [ebp - 0x308]
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.0040c046
test eax, eax
jne 0x402961
lea eax, [ebp - 0x304]
mov edx, str.command
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x308]
call fcn.0040c046
test eax, eax
jne 0x402961
movzx eax, byte [ebp - 0x2f4]
xor ecx, ecx
cmp dword [ebp - 0x330], 1
cmove eax, ecx
xor esi, esi
mov byte [ebp - 0x2f4], al
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x330]
push eax
push esi
push esi
push dword [ebp - 0x304]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402961
push ecx
push esi
push esi
mov ecx, edi
call fcn.0040b82d
push eax
mov edx, edi
lea ecx, [ebp - 0x2f4]
call fcn.00403d62
jmp 0x402961
call fcn.0040ccea
xor eax, eax
xor ecx, ecx
cmp dword [ebp - 0x320], eax
mov edx, str.edit
push eax
push eax
push edi
cmove edx, ecx
call fcn.0040cc4c
xor ebx, ebx
inc ebx
jmp 0x402db9
mov eax, dword [ebp - 0x300]
cmp eax, 1
jne 0x4029c8
cmp dword [esi + 0xc], ebx
je 0x402986
mov ecx, dword [esi + 0xc]
call fcn.0040b6bd
cmp eax, 1
je 0x4029c2
mov ecx, dword [esi + 8]
call fcn.00409ec1
test eax, eax
jne 0x40299d
mov ecx, dword [esi]
call fcn.00409ec1
test eax, eax
je 0x4029c2
cmp dword [esi + 0xc], ebx
je 0x4029aa
mov ecx, dword [esi + 0xc]
call fcn.00402061
xor edx, edx
mov ecx, str.Excel.WebQuery
call fcn.0040baeb
mov dword [ebp - 0x314], str.edit
jmp 0x4029f1
mov eax, dword [ebp - 0x300]
cmp dword [esi + 0xc], ebx
je 0x4029ea
cmp eax, 0xffffffff
je 0x4029fa
mov ecx, dword [esi + 0xc]
call fcn.0040b6bd
cmp dword [ebp - 0x300], eax
je 0x4029f4
mov ecx, dword [esi + 0xc]
call fcn.00402061
mov ecx, edi
call fcn.0040b6ff
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x300]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x320], ecx
cmp eax, 0xffffffff
je 0x402d33
test ecx, ecx
je 0x402d33
xor edx, edx
cmp word [ecx], dx
je 0x402d33
cmp eax, 4
jne 0x402a30
cmp dword [ebp - 0x31c], edx
jne 0x402d33
xor eax, eax
mov dword [ebp - 0x35c], ecx
mov word [ebp - 0x358], ax
mov edx, 0x851
lea eax, [ebp - 0x364]
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
push eax
push str.FHevActivateApp:
push ecx
push 0x64
mov ecx, 0x170a8cb
mov dword [ebp - 0x360], str.Param
call fcn.00401f81
push ecx
mov ecx, dword [ebp - 0x320]
lea edx, [ebp - 0xe4]
call fcn.00402454
test eax, eax
je 0x402d33
cmp word [ebp - 0xe4], bx
lea eax, [ebp - 0x2fc]
push eax
mov ebx, 0x20019
lea edx, [ebp - 0xe4]
cmove edx, dword [ebp - 0x320]
push ebx
push ecx
mov ecx, Ordinal_1
call fcn.0040c046
test eax, eax
jne 0x402d2d
lea eax, [ebp - 0x30c]
mov edx, str.shell
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x2fc]
call fcn.0040c046
test eax, eax
jne 0x402d2d
cmp dword [ebp - 0x31c], eax
jne 0x402bbd
cmp dword [ebp - 0x2f8], eax
je 0x402b14
mov edx, dword [ebp - 0x2fc]
lea eax, [ebp - 0x32c]
push eax
push ecx
push ecx
mov ecx, esi
call fcn.0040233a
mov edi, dword [ebp - 0x32c]
test eax, eax
je 0x402b5e
mov edx, edi
mov ecx, esi
call fcn.0040a0f6
test eax, eax
je 0x402b5e
push 2
pop ebx
cmp edi, ebx
jne 0x402b50
mov edx, ebx
mov ecx, esi
call fcn.0040a0f6
test eax, eax
je 0x402b50
xor eax, eax
push eax
push esi
push ebx
mov edx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x2fc]
call fcn.00402f93
jmp 0x402d22
mov eax, dword [ebp - 0x324]
movzx eax, al
push eax
push esi
push edi
jmp 0x402b3a
mov eax, dword [ebp - 0x324]
mov edx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x2fc]
movzx eax, al
push eax
push esi
push edi
mov dword [ebp - 0x328], eax
call fcn.00402f93
mov ebx, eax
test ebx, ebx
jne 0x402db9
mov ecx, dword [ebp - 0x2f8]
test ecx, ecx
jne 0x402d39
cmp dword [ebp - 0x310], ecx
jne 0x402db9
cmp edi, 4
je 0x402d42
push dword [ebp - 0x328]
mov edx, 0x4333f8
push esi
push edi
jmp 0x402b40
mov ecx, esi
call fcn.00405724
cmp dword [ebp - 0x2f8], 0
mov dword [ebp - 0x324], eax
je 0x402cec
test eax, eax
je 0x402bf6
xor ecx, ecx
cmp word [eax], cx
je 0x402bf6
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402cec
cmp word [eax], cx
je 0x402cec
mov edx, dword [ebp - 0x314]
lea eax, [ebp - 0x308]
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.0040c046
test eax, eax
jne 0x402d2d
lea eax, [ebp - 0x304]
mov edx, str.command
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x308]
call fcn.0040c046
test eax, eax
jne 0x402d2d
movzx eax, byte [ebp - 0x2f4]
xor ecx, ecx
cmp dword [ebp - 0x330], 1
cmove eax, ecx
mov byte [ebp - 0x2f4], al
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x330]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0x304]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402d2d
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 - 0x35c], eax
mov edx, 0x851
xor eax, eax
mov dword [ebp - 0x360], str.Param
mov word [ebp - 0x358], ax
lea eax, [ebp - 0x364]
push eax
push str.FHevActivateApp:_Before_FSimpleSpawn_with
push ecx
push 0x64
mov ecx, 0x170a8cc
call fcn.00401f81
mov ecx, dword [ebp - 0x324]
call fcn.0040b82d
mov edx, dword [ebp - 0x324]
push ecx
push dword [esi + 0x14]
lea ecx, [ebp - 0x2f4]
push dword [esi + 0x10]
push eax
call fcn.00403d62
jmp 0x402d22
push 2
pop eax
cmp edi, eax
jne 0x402d04
mov edx, eax
mov ecx, esi
call fcn.0040a0f6
test eax, eax
jne 0x402961
mov edi, dword [ebp - 0x324]
mov edx, str.print
push ecx
push dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x2fc]
push edi
call fcn.00403cc6
mov ebx, eax
test ebx, ebx
je 0x402d33
jmp 0x402db9
mov ebx, dword [ebp - 0x318]
mov ecx, dword [ebp - 0x2f8]
cmp dword [ebp - 0x310], 0
jne 0x402db9
cmp dword [ebp - 0x354], 0
jne 0x402db9
cmp dword [ebp - 0x31c], 0
je 0x402d5d
mov byte [ebp - 0x310], 2
jmp 0x402d77
xor eax, eax
inc eax
test ecx, ecx
push 3
movzx eax, al
pop edx
cmovne eax, edx
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x310], al
sub esp, 0xc
mov edx, esi
mov ecx, str.Default_Editor
push dword [ebp - 0x310]
call fcn.0040431e
test eax, eax
jne 0x402db9
sub esp, 0xc
mov edx, esi
mov ecx, str.Old_Default_Editor
push dword [ebp - 0x310]
call fcn.0040431e
test eax, eax
jne 0x402db9
cmp byte [ebp - 0x338], 2
je 0x402db9
mov ecx, esi
call fcn.00404225
cmp dword [ebp - 0x304], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402dd0
push dword [ebp - 0x304]
call esi
xor edi, edi
mov dword [ebp - 0x304], edi
cmp dword [ebp - 0x308], edi
je 0x402de8
push dword [ebp - 0x308]
call esi
mov dword [ebp - 0x308], edi
cmp dword [ebp - 0x30c], edi
je 0x402dfe
push dword [ebp - 0x30c]
call esi
mov dword [ebp - 0x30c], edi
cmp dword [ebp - 0x2fc], edi
je 0x402e14
push dword [ebp - 0x2fc]
call esi
cmp byte [ebp - 0x34c], 0
mov dword [ebp - 0x2fc], edi
je 0x402e73
mov ecx, dword [ebp - 0x33c]
call fcn.0040d5c1
mov esi, eax
test esi, esi
je 0x402e73
cmp byte [ebp - 0x344], 0
je 0x402e59
mov ecx, dword [ebp - 0x33c]
call fcn.0040d5c1
test eax, eax
je 0x402e59
mov ecx, dword [ebp - 0x340]
mov edx, eax
call fcn.0040d940
push dword [ebp - 0x33c]
xor cl, cl
call fcn.0040f990
mov ecx, dword [ebp - 0x348]
mov edx, esi
call fcn.0040d940
mov eax, ebx
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.0042d667
leave
ret 4