Function at 0x401ea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x22c]
push ebx
mov ebx, dword [esp + 0x228]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x238]
mov esi, ecx
mov dword [eax], 0xffffffff
cmp dword [esi + 4], 0
push edi
mov edi, dword [esp + 0x22c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0xffffffff
jne 0x401f1d
push 0x18
call fcn.00403f82
add esp, 4
test eax, eax
mov dword [esi + 4], eax
jne 0x401f0a
or eax, 0xffffffff
jmp 0x40212e
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x401f3a
push eax
call fcn.00403f26
mov edx, dword [esi + 4]
add esp, 4
mov dword [edx + 0x14], 0
mov eax, dword [esp + 0x234]
push ebp
push eax
call fcn.00403f82
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x401f5d
or eax, 0xffffffff
jmp 0x40212d
mov ecx, dword [esp + 0x238]
push ecx
push 0
push ebp
call fcn.00404820
add esp, 0xc
lea edx, [esp + 0x238]
push edx
push ebp
push 0
push 0
push ebx
push edi
call dword [0x405010]
test eax, eax
je 0x401f96
mov dword [esp + 0x14], 0xffffffff
jmp 0x402120
mov ecx, dword [ebp]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [ebp + 4]
mov edx, dword [esi + 4]
mov dword [edx + 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov dword [ecx + 8], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 4]
mov dword [edx + 0x10], eax
mov ecx, dword [esi + 4]
mov ebp, dword [ecx + 0xc]
test ebp, ebp
jg 0x401fd9
mov dword [esp + 0x14], 0xffffffff
jmp 0x40211c
xor ecx, ecx
mov eax, ebp
mov edx, 0x668
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403f82
mov edi, eax
add esp, 4
test edi, edi
je 0x401fcc
mov eax, ebp
imul eax, eax, 0x668
push eax
push 0
push edi
call fcn.00404820
mov ecx, dword [esi + 4]
push 0x206
lea edx, [esp + 0x32]
push 0
mov dword [ecx + 0x14], edi
push edx
mov word [esp + 0x38], 0
call fcn.00404820
add esp, 0x18
xor esi, esi
test ebp, ebp
jle 0x402110
mov ebx, dword [esp + 0x10]
add ebx, 0x14
lea ecx, [ecx]
push 0x668
push ebx
push 0x668
push edi
call dword [0x40511c]
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp dword [eax], 0xffffffff
jne 0x4020f9
mov eax, dword [esp + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402070
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
test ecx, ecx
je 0x4020f9
push ecx
lea ecx, [esp + 0x24]
mov edx, eax
call fcn.004029a0
cmp eax, 1
jne 0x4020f9
push edi
lea ecx, [esp + 0x24]
push ecx
call dword [0x405168]
test eax, eax
jne 0x4020ae
mov edx, dword [esp + 0x18]
mov dword [edx], esi
mov eax, dword [esp + 0x18]
cmp dword [eax], 0xffffffff
jne 0x4020f9
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4020c0
sub eax, edx
sar eax, 1
add eax, 0xffffffff
cmp word [esp + eax*2 + 0x20], 0x5c
je 0x4020df
sub eax, 1
jmp 0x4020d2
lea eax, [esp + eax*2 + 0x20]
test eax, eax
je 0x4020f9
push eax
push edi
call dword [0x40516c]
test eax, eax
jbe 0x4020f9
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
add esi, 1
add edi, 0x668
add ebx, 0x668
cmp esi, ebp
jl 0x402040
cmp esi, ebp
jne 0x40211c
mov dword [esp + 0x14], 0
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00403f26
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403f16
add esp, 0x21c
ret 0x14