Function at 0x402870
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4472b6
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov esi, ecx
push 0x44de0b
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00401fc0
push 0x44de0b
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0
call fcn.00401fc0
mov byte [esp + 0x458], 1
cmp dword [esi], 0
jne 0x402942
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40290d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x458], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x402efd
xor ebp, ebp
cmp dword [esp + 0x460], ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
jle 0x402ea6
lea edi, [esi + 0x10c]
jmp 0x402970
mov eax, dword [edi - 0x10c]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x402986
push 0x12
push str.HKEY_LOCAL_MACHINE
jmp 0x4029a4
cmp eax, 0x80000000
jne 0x402996
push 0x11
push str.HKEY_CLASSES_ROOT
jmp 0x4029a4
cmp eax, 0x80000001
jne 0x4029ad
push 0x11
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x24]
call fcn.00402430
mov eax, dword [edi - 0x10c]
lea ecx, [esp + 0x20]
push ecx
push 1
push 0
lea edx, [edi - 0x108]
push edx
push eax
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402d2e
cmp byte [edi], al
je 0x402cf0
cmp dword [edi - 4], 4
lea eax, [edi - 4]
jne 0x4029f3
mov dword [esp + 0x28], 4
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
lea ebx, [edi + 0x104]
push ebx
push eax
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402d8e
mov eax, ebx
lea edx, [eax + 1]
jmp 0x402a20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a20
sub eax, edx
mov esi, eax
cmp byte [edi + esi + 0x103], 0x22
jne 0x402a3d
mov byte [edi + esi + 0x103], cl
dec esi
cmp byte [ebx], 0x22
jne 0x402a5f
lea eax, [esi - 1]
push eax
lea ecx, [edi + 0x105]
push ecx
push ebx
call fcn.00436900
add esp, 0xc
dec esi
mov byte [edi + esi + 0x104], 0
cmp byte [edi + 0x30c], 1
jne 0x402cf0
push 0x103
lea edx, [esp + 0x31]
push 0
push edx
call fcn.00434290
mov esi, dword [esp + 0x470]
add esp, 0xc
test esi, esi
je 0x402abf
mov edx, dword [0x44de44]
mov eax, dword [0x44de3c]
mov ecx, dword [0x44de40]
mov dword [esp + 0x34], edx
mov dl, byte [0x44de50]
mov dword [esp + 0x2c], eax
mov eax, dword [0x44de48]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x44de4c]
mov byte [esp + 0x40], dl
jmp 0x402af3
mov edx, dword [0x44de5c]
mov eax, dword [0x44de54]
mov ecx, dword [0x44de58]
mov dword [esp + 0x34], edx
mov dx, word [0x44de68]
mov dword [esp + 0x2c], eax
mov eax, dword [0x44de60]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x44de64]
mov word [esp + 0x40], dx
cmp byte [edi + 0x30d], 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
jne 0x402c2a
push 0x103
lea eax, [esp + 0x241]
push 0
push eax
mov byte [esp + 0x248], 0
call fcn.00434290
add esp, 0xc
push 0x103
lea ecx, [esp + 0x139]
push 0
push ecx
mov byte [esp + 0x140], 0
call fcn.00434290
add esp, 0xc
test esi, esi
je 0x402b8e
lea esi, [esp + 0x23c]
call fcn.004068a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.control.exe__
lea edx, [esp + 0x138]
push edx
call esi
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x138]
push ecx
call esi
lea edx, [edi + 0x208]
push edx
lea eax, [esp + 0x138]
push eax
jmp 0x402bc4
push 0
lea ecx, [esp + 0x240]
push ecx
call fcn.00406b20
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x138]
push eax
call esi
lea ecx, [edi + 0x208]
push ecx
lea edx, [esp + 0x138]
push edx
call esi
lea eax, [esp + 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402cf0
mov ecx, dword [esp + 0x18]
imul ebp, ebp, 0x41c
mov eax, dword [esp + 0x1c]
add ebp, ecx
lea edx, [ebp + 0x10c]
push edx
add ebp, 4
push ebp
push eax
lea ecx, [esp + 0x20]
push 0x44de7c
push ecx
call fcn.00402100
add esp, 0x10
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00402660
call fcn.00408ec0
mov eax, dword [esp + 0x20]
push eax
jmp 0x402e98
lea eax, [edi + 0x208]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402cac
push 0x103
push eax
lea edx, [esp + 0x34d]
push edx
mov byte [esp + 0x350], al
call fcn.00434290
add esp, 0xc
test esi, esi
je 0x402c6f
lea esi, [esp + 0x344]
call fcn.004068a0
jmp 0x402c7e
push 0
lea eax, [esp + 0x348]
push eax
call fcn.00406b20
lea eax, [edi + 0x208]
push eax
lea ecx, [esp + 0x348]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x344]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402bdd
jmp 0x402cf0
xor eax, eax
cmp dword [edi - 4], 4
jne 0x402cd8
jmp 0x402cc0
mov cl, byte [ebx + eax]
cmp cl, byte [ebx + eax + 0x104]
jne 0x402df0
inc eax
cmp eax, 4
jl 0x402cc0
jmp 0x402cf0
mov dl, byte [ebx + eax]
cmp dl, byte [ebx + eax + 0x104]
jne 0x402e45
inc eax
cmp eax, 0x88
jl 0x402cd8
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea ecx, [edi + 0x104]
push 0
push ecx
call fcn.00434290
inc ebp
add esp, 0xc
add edi, 0x41c
cmp ebp, dword [esp + 0x460]
jge 0x402ea6
mov esi, dword [esp + 0x18]
jmp 0x402970
call dword [sym.imp.KERNEL32.dll_GetLastError]
imul ebp, ebp, 0x41c
mov eax, dword [esp + 0x1c]
lea edx, [esi + ebp + 4]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x44de0c
push ecx
call fcn.00402100
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00408ec0
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402ea6
mov ecx, dword [esp + 0x1c]
imul ebp, ebp, 0x41c
add ebp, esi
lea eax, [ebp + 0x10c]
push eax
add ebp, 4
push ebp
push ecx
lea edx, [esp + 0x20]
push 0x44de20
push edx
call fcn.00402100
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00408ec0
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402ea6
mov ecx, dword [esp + 0x18]
imul ebp, ebp, 0x41c
mov eax, dword [esp + 0x1c]
add ebp, ecx
lea edx, [ebp + 0x10c]
push edx
add ebp, 4
push ebp
push eax
lea ecx, [esp + 0x20]
push 0x44de7c
push ecx
call fcn.00402100
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00408ec0
mov edx, dword [esp + 0x20]
push edx
jmp 0x402e98
mov eax, dword [esp + 0x18]
imul ebp, ebp, 0x41c
mov edx, dword [esp + 0x1c]
add ebp, eax
lea ecx, [ebp + 0x10c]
push ecx
add ebp, 4
push ebp
push edx
lea eax, [esp + 0x20]
push 0x44de7c
push eax
call fcn.00402100
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00408ec0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], 0
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402ece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x458], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ef9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00430bec
add esp, 0x448
ret 8