Function at 0x407079
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d0
cmp dword [0x420a88], 0
je 0x4070ee
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x4070ee
mov eax, dword [ebp + 0x20]
and eax, 0xff
push eax
push 0x420b14
push 0x420b18
push 0x420b1c
push 0
push 0x420b20
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406c95
add esp, 0xc
push eax
push 0x420b24
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406c95
add esp, 0xc
push eax
push 0
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040652e
add esp, 0x2c
mov dword [ebp + 0x1c], eax
lea ecx, [ebp - 0x31c]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [0x418008]
test eax, eax
jne 0x407678
mov dword [ebp - 0x210], 0
jmp 0x40712d
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x7d0], 0x104
mov dword [ebp - 0x328], 0x190
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x5bc]
push eax
push 0
push 0
lea ecx, [ebp - 0x7d0]
push ecx
lea edx, [ebp - 0x7cc]
push edx
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x31c]
push ecx
call dword [0x418040]
test eax, eax
je 0x40717e
jmp 0x40766b
mov dl, byte [ebp + 0x14]
mov byte [ebp - 0x320], dl
movsx eax, byte [ebp - 0x7cc]
test eax, eax
jne 0x4071a6
push str._Default_
lea ecx, [ebp - 0x7cc]
push ecx
call fcn.0040dc70
add esp, 8
lea edx, [ebp - 0x7cc]
push edx
lea eax, [ebp - 0x6c0]
push eax
call fcn.0040dc70
add esp, 8
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
test ecx, ecx
je 0x40735d
lea edx, [ebp - 0x7cc]
push edx
push 0x41bdcc
lea eax, [ebp - 0x42c]
push eax
call fcn.0040dddb
add esp, 0xc
lea ecx, [ebp - 0x6c4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x42c]
push edx
push 0x80000000
call dword [0x418008]
test eax, eax
jne 0x40725c
mov dword [ebp - 0x328], 0x104
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0
push 0
push 0x420b28
mov edx, dword [ebp - 0x6c4]
push edx
call dword [0x418018]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x40724a
mov byte [ebp - 0x42c], 0
mov eax, dword [ebp - 0x6c4]
push eax
call dword [0x41800c]
jmp 0x4072df
lea ecx, [ebp - 0x7cc]
push ecx
push str.CLSID_sShellOpenCommand
lea edx, [ebp - 0x42c]
push edx
call fcn.0040dddb
add esp, 0xc
lea eax, [ebp - 0x6c4]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0x80000000
call dword [0x418008]
test eax, eax
jne 0x4072d8
mov dword [ebp - 0x328], 0x104
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x42c]
push eax
push 0
push 0
push 0x420b2c
mov ecx, dword [ebp - 0x6c4]
push ecx
call dword [0x418018]
mov edx, dword [ebp - 0x6c4]
push edx
call dword [0x41800c]
jmp 0x4072df
mov byte [ebp - 0x42c], 0
lea eax, [ebp - 0x5bc]
push eax
lea ecx, [ebp - 0x6c0]
push ecx
call fcn.0040dc70
add esp, 8
push 0
lea edx, [ebp - 0x42c]
push edx
call fcn.00403360
add esp, 8
mov dword [ebp - 0x6c8], eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x6c8]
push edx
call fcn.004038ca
add esp, 0xc
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
push eax
push 0xffffffffffffffff
push 0
push 1
push 0x1002
mov ecx, dword [ebp + 8]
push ecx
call dword [0x41835c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x318], eax
jmp 0x407507
mov edx, dword [ebp + 0x14]
and edx, 0xff
test edx, edx
jne 0x4074a4
lea eax, [ebp - 0x5bc]
push eax
push 0x41be00
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0040dddb
add esp, 0xc
lea edx, [ebp - 0x6c4]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x42c]
push eax
push 0x80000000
call dword [0x418008]
test eax, eax
jne 0x40743f
mov dword [ebp - 0x328], 0x104
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x42c]
push edx
push 0
push 0
push 0x420b30
mov eax, dword [ebp - 0x6c4]
push eax
call dword [0x418018]
test eax, eax
jne 0x407432
push 0
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00403360
add esp, 8
mov dword [ebp - 0x324], eax
mov edx, dword [ebp - 0x324]
push edx
lea eax, [ebp - 0x7cc]
push eax
push str._s_____s
lea ecx, [ebp - 0x5bc]
push ecx
call fcn.0040dddb
add esp, 0x10
mov byte [ebp - 0x320], 1
mov edx, dword [ebp - 0x324]
push edx
call fcn.0040da3e
add esp, 4
mov eax, dword [ebp - 0x6c4]
push eax
call dword [0x41800c]
push 0
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00403360
add esp, 8
mov dword [ebp - 0x6c8], eax
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x6c8]
push ecx
call fcn.004038ca
add esp, 0xc
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
push edx
push 0xffffffffffffffff
push 0
push 1
push 0x1002
mov eax, dword [ebp + 8]
push eax
call dword [0x41835c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x318], eax
jmp 0x407507
push 0
lea ecx, [ebp - 0x5bc]
push ecx
call fcn.00403360
add esp, 8
mov dword [ebp - 0x6c8], eax
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x6c8]
push ecx
call fcn.004038ca
add esp, 0xc
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
push edx
push 0xffffffffffffffff
push 0
push 1
push 0x1002
mov eax, dword [ebp + 8]
push eax
call dword [0x41835c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x318], eax
movsx ecx, byte [ebp - 0x6c0]
test ecx, ecx
jne 0x407570
mov edx, dword [ebp - 0x6c8]
movsx eax, byte [edx]
test eax, eax
je 0x407570
push 0x5c
mov ecx, dword [ebp - 0x6c8]
push ecx
call fcn.0040e530
add esp, 8
test eax, eax
je 0x40755a
push 0x5c
mov edx, dword [ebp - 0x6c8]
push edx
call fcn.0040e530
add esp, 8
add eax, 1
push eax
lea eax, [ebp - 0x6c0]
push eax
call fcn.0040dc70
add esp, 8
jmp 0x407570
mov ecx, dword [ebp - 0x6c8]
push ecx
lea edx, [ebp - 0x6c0]
push edx
call fcn.0040dc70
add esp, 8
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x6c8]
push edx
lea eax, [ebp - 0x6c0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406381
add esp, 0x14
and eax, 0xff
test eax, eax
je 0x407666
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x407609
mov edx, dword [ebp + 0x20]
and edx, 0xff
push edx
push 0x420b34
push 0x420b38
push 0x420b3c
push 0
push 0x420b40
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406c95
add esp, 0xc
push eax
push 0x420b44
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00406c95
add esp, 0xc
push eax
push 0
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040652e
add esp, 0x2c
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x20]
and eax, 0xff
push eax
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x6c8]
push ecx
lea edx, [ebp - 0x7cc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406c95
add esp, 0xc
push eax
lea edx, [ebp - 0x6c0]
push edx
push 1
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x318]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040652e
add esp, 0x2c
jmp 0x40711e
mov eax, dword [ebp - 0x31c]
push eax
call dword [0x41800c]
mov eax, dword [ebp + 0x1c]
mov esp, ebp
pop ebp
ret