Function at 0x402800
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp esi, ebp
mov dword [esp + 0x14], ebp
je 0x402ab8
cmp byte [esi], 0
je 0x402ab8
call fcn.004020e0
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x402ab8
push ebp
mov edx, esi
mov ecx, 0x80000000
mov dword [esp + 0x14], ebp
call fcn.00402220
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x18], ebx
je 0x402aa5
cmp dword [ebx + 8], ebp
je 0x402aa5
mov edi, dword [esp + 0x14]
mov edx, ebx
mov ecx, edi
call fcn.00402100
test eax, eax
je 0x402a9e
mov al, byte [esi]
mov ecx, dword [ebx]
cmp al, 0x2e
jne 0x4028c1
mov edx, dword [ebx + 0x14]
or ecx, 0x20
cmp edx, ebp
mov dword [ebx], ecx
je 0x4028d7
push ebp
mov ecx, 0x80000000
call fcn.00402220
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x4028d7
cmp dword [eax + 8], ebp
je 0x4028d7
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00402100
test eax, eax
je 0x4028b4
mov eax, dword [esi]
or al, 0x10
mov dword [esi], eax
jmp 0x4028d7
mov ecx, esi
call fcn.00402170
mov dword [esp + 0x10], ebp
jmp 0x4028d7
mov eax, dword [ebx + 0x14]
or ecx, 0x10
cmp eax, ebp
mov dword [ebx], ecx
je 0x4028d7
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebp
mov ebx, ebp
cmp dword [esp + 0x10], ebp
je 0x402aab
push ebp
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x3c]
push ebp
lea edx, [esp + 0x38]
push ecx
push edx
push ebp
push ebp
push ebp
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402aa5
mov eax, dword [esp + 0x28]
add eax, 8
and al, 0xfc
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebp
je 0x402aa5
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x24], eax
jle 0x402a8d
mov ebp, dword [sym.imp.KERNEL32.dll_CompareStringA]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
inc ecx
push edx
mov dword [esp + 0x30], ecx
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
push edi
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402a76
cmp byte [edi], 0x2e
jne 0x402a76
test ebx, ebx
je 0x40299a
mov edx, dword [ebx + 8]
push 0xffffffffffffffff
push edx
push 0xffffffffffffffff
push edi
push 0x30001
push 0x800
call ebp
cmp eax, 2
je 0x402a76
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push 0x80000000
call esi
test eax, eax
jne 0x402a76
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jbe 0x4029db
add eax, 8
and al, 0xfc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
jmp 0x4029df
lea ebx, [esp + 0x38]
test ebx, ebx
je 0x402a72
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x38]
push ecx
push edx
push edi
push 0x80000000
call esi
test eax, eax
jne 0x402a5a
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
mov ecx, dword [eax + 8]
push ecx
push 0xffffffffffffffff
push edx
push 0x30001
push 0x800
call ebp
cmp eax, 2
jne 0x402a5a
push 0
lea edx, [esp + 0x3c]
mov ecx, 0x80000000
call fcn.00402220
mov esi, eax
test esi, esi
je 0x402a5a
mov eax, dword [esi + 8]
test eax, eax
je 0x402a5a
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.00402100
test eax, eax
je 0x402a53
mov eax, dword [esi]
or al, 0x20
mov dword [esi], eax
jmp 0x402a5a
mov ecx, esi
call fcn.00402170
lea eax, [esp + 0x38]
cmp ebx, eax
je 0x402a72
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x402941
xor ebp, ebp
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402aa5
mov ecx, ebx
call fcn.00402170
cmp dword [esp + 0x10], ebp
jne 0x402ab8
mov ecx, dword [esp + 0x14]
call fcn.00402170
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret