Function at 0x40a450
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46085c
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x47ccc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x16c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40a4e6
mov dword [ebp - 0xe4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00406870
mov eax, dword [ebp - 0xe4]
jmp 0x40b06b
mov eax, dword [ebp - 0x70]
add eax, 1
push eax
call fcn.00410812
add esp, 4
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
jne 0x40a52e
mov dword [ebp - 0xec], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00406870
mov eax, dword [ebp - 0xec]
jmp 0x40b06b
push 0x465a98
lea ecx, [ebp - 0xf0]
call fcn.00406510
mov dword [ebp - 0x2b8], eax
mov edx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040fb50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf0]
call fcn.00406870
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x18c], edx
xor eax, eax
cmp dword [ebp - 0x18c], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x40a74a
cmp dword [ebp + 0xc], 0
jne 0x40a6ba
push ecx
mov edx, esp
mov dword [ebp - 0xf4], esp
mov dword [ebp - 0x198], edx
mov eax, dword [ebp + 0x10]
sub eax, 0x10
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
push ecx
call fcn.004069c0
add esp, 4
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
add edx, 0x10
mov eax, dword [ebp - 0x198]
mov dword [eax], edx
mov ecx, dword [ebp - 0x198]
mov dword [ebp - 0x2c0], ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.0040bdd0
add esp, 8
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2c8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c8]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0xfc], esp
push str.name
call fcn.00406510
mov dword [ebp - 0x2cc], eax
lea edx, [ebp - 0x100]
push edx
call fcn.0040bdd0
add esp, 8
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2d4]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0040fc10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x100]
call fcn.00406870
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf8]
call fcn.00406870
cmp dword [ebp - 0x68], 0
ja 0x40a68f
cmp dword [ebp - 0x80], 0
jbe 0x40a6a3
push 1
push 1
push 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.0040fd30
jmp 0x40a6b5
push 1
push 1
push 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410020
jmp 0x40a74a
push ecx
mov ecx, esp
mov dword [ebp - 0x104], esp
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 0x10
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1b4]
push eax
call fcn.004069c0
add esp, 4
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
add ecx, 0x10
mov edx, dword [ebp - 0x1bc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x2d8], eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040bdd0
add esp, 8
mov dword [ebp - 0x2dc], eax
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040fbd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.00406870
mov eax, dword [0x47e404]
cdq
mov ecx, 0x32
idiv ecx
mov eax, dword [0x47e404]
add eax, 1
mov dword [0x47e404], eax
test edx, edx
jne 0x40a7fc
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40a7fc
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x98], 0x100
jne 0x40a7fc
cmp dword [ebp - 0x94], 0x1b
jne 0x40a7fc
mov dword [ebp - 0x10c], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.0042b0cd
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.0042b0cd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00406870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00406870
mov eax, dword [ebp - 0x10c]
jmp 0x40b06b
lea ecx, [ebp - 0x60]
call fcn.0042cd64
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004080e0
add esp, 8
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa0], 0
jmp 0x40a839
mov ecx, dword [ebp - 0xa0]
add ecx, 1
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
cmp edx, dword [ebp - 0x10]
jge 0x40ae13
cmp dword [ebp - 0xa0], 0
jl 0x40a85c
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x58]
jl 0x40a861
call fcn.0041f3ea
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x40a87e
jmp 0x40a82a
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.00407ad0
mov dword [ebp - 0x2e4], eax
mov edx, dword [ebp - 0x2e4]
mov dword [ebp - 0x1d4], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x16c]
or eax, 1
mov dword [ebp - 0x16c], eax
mov ecx, str._Default_
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x1cc], ecx
jne 0x40a8d8
push 0x80004005
call fcn.00401510
xor edx, edx
jne 0x40a8b5
xor eax, eax
jne 0x40a8dc
mov ecx, dword [ebp - 0x1d4]
mov edx, dword [ecx]
mov dword [ebp - 0x1d0], edx
push str._Default_
mov eax, dword [ebp - 0x1d0]
push eax
call fcn.004475b6
add esp, 8
mov dword [ebp - 0x1d8], eax
cmp dword [ebp - 0x1d8], 0
jne 0x40a9b7
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.00407b20
mov dword [ebp - 0x2e8], eax
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x16c]
or eax, 2
mov dword [ebp - 0x16c], eax
mov ecx, str._value_not_set_
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x1dc], ecx
jne 0x40a972
push 0x80004005
call fcn.00401510
xor edx, edx
jne 0x40a94f
xor eax, eax
jne 0x40a976
mov ecx, dword [ebp - 0x1e4]
mov edx, dword [ecx]
mov dword [ebp - 0x1e0], edx
push str._value_not_set_
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.004475b6
add esp, 8
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0
jne 0x40a9b7
mov dword [ebp - 0x2ec], 0
jmp 0x40a9c1
mov dword [ebp - 0x2ec], 1
mov cl, byte [ebp - 0x2ec]
mov byte [ebp - 0x10d], cl
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x16c]
and edx, 2
je 0x40a9f1
and dword [ebp - 0x16c], 0xfffffffd
lea ecx, [ebp - 0x118]
call fcn.00406870
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x16c]
and eax, 1
je 0x40aa15
and dword [ebp - 0x16c], 0xfffffffe
lea ecx, [ebp - 0x114]
call fcn.00406870
movzx ecx, byte [ebp - 0x10d]
test ecx, ecx
je 0x40ada3
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 8]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], 2
cmp dword [ebp - 0xa8], 3
jb 0x40aa4f
cmp dword [ebp - 0xa8], 5
jbe 0x40aa58
cmp dword [ebp - 0xa8], 0xb
jne 0x40aa62
mov dword [ebp - 0xac], 3
cmp dword [ebp + 0xc], 0
jne 0x40acef
push 0x465aac
lea ecx, [ebp - 0x11c]
call fcn.00406510
mov dword [ebp - 0x2f0], eax
mov ecx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x2f4]
push edx
lea ecx, [ebp - 0xd8]
call fcn.0040fb50
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x11c]
call fcn.00406870
push ecx
mov eax, esp
mov dword [ebp - 0x120], esp
push eax
mov ecx, dword [ebp - 0xa4]
call fcn.00407ad0
mov dword [ebp - 0x2f8], eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0040bdd0
add esp, 8
mov dword [ebp - 0x2fc], eax
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x300], edx
mov byte [ebp - 4], 0xf
push str.name
lea ecx, [ebp - 0x128]
call fcn.00406510
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x300]
push ecx
mov edx, dword [ebp - 0x308]
push edx
lea ecx, [ebp - 0xd8]
call fcn.0040fc10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x128]
call fcn.00406870
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x124]
call fcn.00406870
push ecx
mov eax, esp
mov dword [ebp - 0x12c], esp
push eax
mov ecx, dword [ebp - 0xa4]
call fcn.00407b20
mov dword [ebp - 0x30c], eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.0040bdd0
add esp, 8
mov dword [ebp - 0x310], eax
mov edx, dword [ebp - 0x310]
mov dword [ebp - 0x314], edx
mov byte [ebp - 4], 0x11
push str.value
lea ecx, [ebp - 0x134]
call fcn.00406510
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x31c], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x31c]
push edx
lea ecx, [ebp - 0xd8]
call fcn.0040fc10
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x134]
call fcn.00406870
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x130]
call fcn.00406870
cmp dword [ebp - 0xa8], 1
je 0x40aca8
cmp dword [ebp - 0xa8], 0
je 0x40aca8
push ecx
mov eax, esp
mov dword [ebp - 0x138], esp
mov ecx, dword [ebp - 0xa8]
push ecx
push eax
call fcn.00409700
add esp, 8
mov dword [ebp - 0x320], eax
lea edx, [ebp - 0x13c]
push edx
call fcn.0040bdd0
add esp, 8
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x328], eax
mov byte [ebp - 4], 0x13
push str.type
lea ecx, [ebp - 0x140]
call fcn.00406510
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
mov dword [ebp - 0x330], ecx
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x328]
push edx
mov eax, dword [ebp - 0x330]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040fc10
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x140]
call fcn.00406870
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x13c]
call fcn.00406870
push 1
push 1
push 1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00410020
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xc0]
call fcn.0042b0cd
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd4]
call fcn.0042b0cd
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd8]
call fcn.00406870
jmp 0x40ada3
push ecx
mov edx, esp
mov dword [ebp - 0x144], esp
push edx
mov ecx, dword [ebp - 0xa4]
call fcn.00407b20
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x148]
push eax
call fcn.0040bdd0
add esp, 8
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
mov dword [ebp - 0x33c], ecx
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x33c]
push edx
push ecx
mov eax, esp
mov dword [ebp - 0x14c], esp
push eax
mov ecx, dword [ebp - 0xa4]
call fcn.00407ad0
mov dword [ebp - 0x340], eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.0040bdd0
add esp, 8
mov dword [ebp - 0x344], eax
mov edx, dword [ebp - 0x344]
mov dword [ebp - 0x348], edx
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x348]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040fc10
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x150]
call fcn.00406870
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x148]
call fcn.00406870
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x154], edx
cmp dword [ebp - 0x154], 0
je 0x40ae04
mov ecx, dword [ebp - 0x154]
add ecx, 4
call fcn.00406870
mov ecx, dword [ebp - 0x154]
call fcn.00406870
mov eax, 1
and eax, 1
je 0x40adf6
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.00410807
add esp, 4
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x34c], edx
jmp 0x40ae0e
mov dword [ebp - 0x34c], 0
jmp 0x40a82a
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x264], ecx
xor edx, edx
cmp dword [ebp - 0x264], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x40ae64
cmp dword [ebp + 0xc], 0
je 0x40ae64
cmp dword [ebp - 0x68], 0
jbe 0x40ae52
push 1
push 1
push 1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0040fd30
jmp 0x40ae64
push 1
push 1
push 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.00410020
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x4c], 0
jmp 0x40ae7d
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40afa7
mov ecx, dword [ebp - 0x70]
add ecx, 1
mov dword [ebp - 0xdc], ecx
lea edx, [ebp - 0x78]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40afa2
cmp dword [ebp - 0x6c], 0
je 0x40afa2
cmp dword [ebp - 0xdc], 0
jbe 0x40afa2
mov ecx, dword [ebp - 0x6c]
add ecx, dword [ebp - 0xdc]
mov byte [ecx], 0
lea edx, [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40afa2
mov edx, dword [ebp - 0xe0]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x15c], esp
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00406510
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a450
add esp, 0x10
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0
jne 0x40af95
mov dword [ebp - 0x160], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.0042cd7b
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x30]
call fcn.0042b0cd
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x44]
call fcn.0042b0cd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00406870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00406870
mov eax, dword [ebp - 0x160]
jmp 0x40b06b
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ae74
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x2ac], edx
xor eax, eax
cmp dword [ebp - 0x2ac], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x40b004
cmp dword [ebp + 0xc], 0
jne 0x40afec
cmp dword [ebp - 0x68], 0
ja 0x40afd8
cmp dword [ebp - 0x80], 0
jbe 0x40afea
push 1
push 1
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.00410600
jmp 0x40b004
cmp dword [ebp - 0x68], 0
jbe 0x40b004
push 1
push 1
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410600
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x164]
push edx
call fcn.00410807
add esp, 4
mov dword [ebp - 0x168], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.0042cd7b
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x30]
call fcn.0042b0cd
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x44]
call fcn.0042b0cd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00406870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00406870
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret