Function at 0x402290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov dword [ebp - 0x184], ecx
mov eax, dword [ebp - 0x184]
add eax, 8
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
cmp dword [ecx + 4], 0
jne 0x4022db
mov dword [ebp - 0x188], 0
jmp 0x4022fd
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
mov ecx, dword [edx + 8]
sub ecx, dword [eax + 4]
mov eax, ecx
cdq
mov ecx, 0x1c
idiv ecx
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jbe 0x40295b
mov dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0xa0]
push edx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0041aa50
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 5
jbe 0x40295b
cmp dword [ebp + 8], 0
je 0x4023fb
push 0x22
push 1
mov ecx, dword [ebp + 8]
call fcn.00419910
mov dword [ebp - 0xbc], 0
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xbc]
push edx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0041aa50
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx]
mov dword [ebp - 0xb4], edx
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419710
push 0x22
push 1
mov ecx, dword [ebp + 8]
call fcn.00419840
mov dword [ebp - 0xd4], 0
mov ecx, dword [ebp - 0x184]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xd4]
push ecx
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0xc0]
call fcn.0041aa50
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xcc]
cmp dword [edx + 0x18], 0x10
jb 0x40246a
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18c], ecx
jmp 0x402479
mov edx, dword [ebp - 0xcc]
add edx, 4
mov dword [ebp - 0x18c], edx
push 4
push str.HKLM
mov eax, dword [ebp - 0x18c]
push eax
call fcn.0048fd20
add esp, 0xc
test eax, eax
jne 0x40249f
mov dword [ebp - 0x2c], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40254a
mov dword [ebp - 0xe8], 0
mov ecx, dword [ebp - 0x184]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe8]
imul edx, edx, 0x1c
add edx, dword [ebp - 0xe4]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
cmp dword [ecx + 0x18], 0x10
jb 0x40250e
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x190], eax
jmp 0x40251d
mov ecx, dword [ebp - 0xdc]
add ecx, 4
mov dword [ebp - 0x190], ecx
push 4
push str.HKCU
mov edx, dword [ebp - 0x190]
push edx
call fcn.0048fd20
add esp, 0xc
test eax, eax
jne 0x402540
mov dword [ebp - 0x2c], SysStringLen
jmp 0x40254a
mov eax, 1
jmp 0x402960
mov dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xfc]
imul ecx, ecx, 0x1c
add ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xf0], edx
mov byte [ebp - 0xfd], 0x5c
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x104], eax
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0xfd]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.00419ba0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4025d8
mov eax, 1
jmp 0x402960
mov dword [ebp - 0x118], 0
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x118]
imul eax, eax, 0x1c
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x124], edx
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.004236e0
mov eax, dword [ebp - 0x30]
sub eax, 5
push eax
push 5
mov ecx, dword [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00423530
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c], 0
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x13c]
push edx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x128]
call fcn.0041aa50
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
mov dword [ebp - 0x134], edx
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.004236e0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
add eax, 1
push eax
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00423530
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0x10
jb 0x4026ec
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x194], edx
jmp 0x4026f5
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x194], eax
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x194]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402938
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 1
cmp dword [ebp - 0x10], 0x10
jb 0x402738
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x198], ecx
jmp 0x402741
lea edx, [ebp - 0x24]
mov dword [ebp - 0x198], edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4028fa
mov eax, dword [ebp - 0x184]
add eax, 8
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
cmp dword [ecx + 4], 0
jne 0x40278b
mov dword [ebp - 0x19c], 0
jmp 0x4027ad
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x148]
mov ecx, dword [edx + 8]
sub ecx, dword [eax + 4]
mov eax, ecx
cdq
mov ecx, 0x1c
idiv ecx
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 1
jbe 0x4028f3
mov dword [ebp - 0x15c], 1
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x15c]
imul eax, eax, 0x1c
add eax, dword [ebp - 0x158]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x168], edx
push 0
push 0
lea ecx, [ebp - 0x78]
call fcn.004236e0
mov eax, dword [0x4a2ac8]
push eax
push 0
mov ecx, dword [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x78]
call fcn.00423530
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x54]
add edx, 1
push edx
call fcn.0048a6d0
add esp, 4
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x54]
mov byte [ecx], 0
cmp dword [ebp - 0x10], 0x10
jb 0x402871
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1a0], edx
jmp 0x40287a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x60], 0x10
jb 0x4028a8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x1a4], edx
jmp 0x4028b1
lea eax, [ebp - 0x74]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0049a8c5
add esp, 8
test eax, eax
jne 0x4028cf
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0048bd78
add esp, 4
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.004236e0
jmp 0x4028fa
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004236e0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004236e0
mov eax, dword [ebp - 0x84]
jmp 0x402960
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004236e0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004236e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4