Function at 0x402930
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447b06
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x45c5d0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c5d0]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov esi, ecx
push 0x44ecdb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
call fcn.00401fd0
push 0x44ecdb
lea ecx, [esp + 0x20]
mov dword [esp + 0x250], 0
call fcn.00401fd0
mov byte [esp + 0x24c], 1
cmp dword [esi], 0
jne 0x402a02
mov byte [esp + 0x24c], 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 0x4029cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x402d76
xor ebp, ebp
cmp dword [esp + 0x254], ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x104
jle 0x402d1f
lea edi, [esi + 0x108]
jmp 0x402a34
mov esi, dword [esp + 0x20]
mov eax, dword [edi - 0x108]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x402a4a
push 0x12
push str.HKEY_LOCAL_MACHINE
jmp 0x402a68
cmp eax, 0x80000000
jne 0x402a5a
push 0x11
push str.HKEY_CLASSES_ROOT
jmp 0x402a68
cmp eax, 0x80000001
jne 0x402a71
push 0x11
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x24]
call fcn.00402440
mov eax, dword [edi - 0x108]
lea ecx, [esp + 0x24]
push ecx
push 1
push 0
lea edx, [edi - 0x104]
push edx
push eax
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402c0a
cmp byte [edi + 4], 0
lea eax, [edi + 4]
je 0x402bd0
cmp dword [edi], 4
jne 0x402ab8
mov dword [esp + 0x2c], 4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
lea ebx, [edi + 0x108]
push ebx
push edi
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c6a
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ae0
sub eax, edx
mov esi, eax
cmp byte [edi + esi + 0x107], 0x22
jne 0x402afd
mov byte [edi + esi + 0x107], cl
dec esi
cmp byte [ebx], 0x22
jne 0x402b1f
lea eax, [esi - 1]
push eax
lea ecx, [edi + 0x109]
push ecx
push ebx
call fcn.00437370
add esp, 0xc
dec esi
mov byte [edi + esi + 0x108], 0
cmp byte [edi + 0x310], 1
jne 0x402bd0
cmp byte [edi + 0x311], 1
jne 0x402b6c
push 0x103
lea edx, [esp + 0x35]
push 0
push edx
mov byte [esp + 0x3c], 0
call fcn.00434d10
add esp, 0xc
lea esi, [esp + 0x30]
call fcn.00407de0
lea eax, [edi + 0x20c]
push eax
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, esi
push edx
jmp 0x402bc1
lea esi, [edi + 0x20c]
push esi
push 0x44ed3c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402bc0
push 0x103
push eax
mov byte [esp + 0x140], al
lea eax, [esp + 0x141]
push eax
call fcn.00434d10
add esp, 0xc
lea esi, [esp + 0x138]
call fcn.00407d90
lea eax, [edi + 0x20c]
push eax
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, esi
push edx
jmp 0x402bc1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402cc9
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea ecx, [edi + 0x108]
push 0
push ecx
call fcn.00434d10
inc ebp
add esp, 0xc
add edi, 0x41c
cmp ebp, dword [esp + 0x254]
jl 0x402a30
jmp 0x402d1f
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 + 0x20]
push 0x44ecf0
push ecx
call fcn.00402110
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.004025f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00409780
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402d1f
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 + 0x24]
push 0x44ed04
push edx
call fcn.00402110
mov eax, dword [esp + 0x2c]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.004025f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00409780
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402d1f
mov ecx, dword [esp + 0x20]
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 + 0x24]
push 0x44ed20
push ecx
call fcn.00402110
add esp, 0x10
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00402660
call fcn.00409780
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], 0
mov byte [esp + 0x24c], 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 0x402d47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0043164a
add esp, 0x23c
ret 4