Function at 0x402000
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x82c
push ebx
push ebp
push esi
mov ebp, 0x400
push edi
push ebp
call fcn.00405ccc
mov ebx, dword [esp + 0x848]
mov edi, dword [esp + 0x844]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 1
push eax
push ebx
push edi
call dword [section..rdata]
test eax, eax
jne 0x402292
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00401690
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x850]
lea edx, [esp + 0x18]
push edx
push eax
push ebx
push edi
call fcn.004016f0
mov edx, dword [esp + 0x85c]
add esp, 0x14
lea ecx, [esp + 0x20]
push ecx
push edx
push edi
call dword [0x40e044]
test eax, eax
jne 0x402292
lea eax, [esp + 0x3c]
push 0x42c484
push eax
call fcn.00405ee8
mov ebx, dword [0x40e048]
add esp, 8
xor edi, edi
mov dword [esp + 0x18], edi
mov al, byte [esp + 0x13]
test al, al
jne 0x4020d5
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x4020ba
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
push esi
push eax
mov eax, dword [esp + 0x2c]
push 0
push edx
push eax
call dword [0x40e04c]
jmp 0x4020da
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push esi
push edx
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x4c]
mov eax, edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
inc edi
push eax
mov dword [esp + 0x3c], 0x800
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], edi
call ebx
cmp eax, 0xea
jne 0x402161
dec edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x800
add eax, 0x400
push eax
push esi
mov dword [esp + 0x20], eax
mov ebp, eax
call fcn.00405f0d
add esp, 8
lea ecx, [esp + 0x18]
mov esi, eax
lea edx, [esp + 0x24]
push ecx
push esi
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x4c]
push eax
push ecx
push edi
push edx
call ebx
cmp eax, 0xea
je 0x402114
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x4020a1
mov edi, dword [esp + 0x844]
push edi
call fcn.00405d58
mov ebx, dword [esp + 0x84c]
lea esi, [edi + eax*2]
push ebx
mov word [esi], 0x5c
add esi, 2
call fcn.00405d58
mov ebp, dword [0x40e070]
lea ebx, [ebx + eax*2]
add esp, 8
mov word [ebx], 0x5c
add ebx, 2
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
push esi
push 0
push edx
mov dword [esp + 0x50], 0x400
call dword [0x40e064]
cmp eax, 0x103
je 0x40224a
test eax, eax
jne 0x40224a
push esi
push ebx
call fcn.00405ee8
mov eax, dword [esp + 0x854]
mov ecx, dword [esp + 0x850]
mov edx, dword [esp + 0x848]
push eax
push ecx
push edi
push edx
call fcn.00402000
mov eax, dword [esp + 0x2c]
add esp, 0x18
push eax
call ebp
mov edx, dword [esp + 0x844]
mov eax, dword [esp + 0x840]
lea ecx, [esp + 0x14]
lea edi, [esi - 2]
push ecx
push edx
push eax
mov word [edi], 0
call dword [section..rdata]
test eax, eax
jne 0x402243
push 0x41004c
push edi
call fcn.00405ee8
mov edi, dword [esp + 0x84c]
add esp, 8
jmp 0x4021a2
mov edi, dword [esp + 0x844]
mov edx, dword [esp + 0x84c]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0
push 0
call fcn.004016f0
mov eax, dword [esp + 0x850]
add esp, 0x10
mov word [esi], 0
push edi
push eax
call dword [0x40e050]
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov edx, dword [esp + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x28]
push eax
call fcn.00405c84
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x82c
ret