Function at 0x420320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55246d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x70
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x34], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], esi
test eax, eax
jne 0x42004a
mov dword [esi], 6
mov byte [esi + 0x20], 1
jmp 0x4202f6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push ecx
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push ecx
push 0
push dword [ebx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42007d
mov dword [esi], eax
mov byte [esi + 0x20], 1
jmp 0x4202f6
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
xor eax, eax
movq qword [ebp - 0x28], xmm0
xor ecx, ecx
mov dword [ebp - 0x3c], eax
xor edx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x420120
lea eax, [ebp - 0x35]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00421730
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push 0
push dword [ebx + 0xc]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x28]
test eax, eax
je 0x420114
mov dword [esi], eax
mov byte [esi + 0x20], 1
test ecx, ecx
je 0x4202f6
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov eax, ecx
cmp edx, 0x1000
jb 0x4202ec
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420318
jmp 0x4202ec
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
dec eax
cmp eax, 0xa
ja case.0x420134.2
movzx eax, byte [eax + 0x420334]
jmp dword [eax*4 + 0x420320]
cmp edi, 4
je 0x420154
mov dword [esi], 0xd
mov byte [esi + 0x20], 1
test ecx, ecx
je 0x4202f6
jmp 0x4200eb
mov eax, dword [ecx]
mov dword [esi], eax
mov byte [esi + 0x18], 0
mov byte [esi + 0x20], 0
jmp 0x4200eb
cmp edi, 8
jne 0x420140
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 0x34], 0
push dword [ebp - 0x34]
mov dword [ebp - 0x5c], ecx
mov ecx, esi
mov byte [ebp - 0x48], 1
call fcn.00421a90
mov byte [esi + 0x20], 0
lea ecx, [ebp - 0x60]
call fcn.00420b90
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4202f6
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4201c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420318
push ecx
push edx
jmp 0x4202ee
test edi, edi
jne 0x42023e
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5f51a0]
cmp eax, dword [ecx + 8]
jle 0x42020f
push 0x5f51a0
call fcn.0050a9ba
add esp, 4
cmp dword [0x5f51a0], 0xffffffff
jne 0x42020f
push 0x55ea90
call fcn.0050a85d
push 0x5f51a0
call fcn.0050a970
add esp, 8
push 0x5ece70
lea ecx, [ebp - 0x80]
call fcn.00419520
lea eax, [ebp - 0x80]
mov byte [ebp - 0x34], 0
push eax
push dword [ebp - 0x34]
mov ecx, esi
mov byte [ebp - 0x68], 2
call fcn.00421a90
mov byte [esi + 0x20], 0
lea ecx, [ebp - 0x80]
jmp 0x42018f
mov eax, dword [ebp - 0x3c]
sub eax, ecx
cmp byte [ecx + eax - 1], 0
jne 0x420140
mov edx, ecx
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x420268
sub edx, edi
push edx
push ecx
lea ecx, [ebp - 0x58]
call fcn.00419cf0
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x70], xmm0
jmp 0x42021c
mov eax, dword [ebp - 0x3c]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov byte [esi + 0x18], 4
mov byte [esi + 0x20], 0
jmp 0x4202f6
mov dword [esi], 0xd
mov byte [esi + 0x20], 1
test ecx, ecx
je 0x4202f6
sub edx, ecx
mov eax, ecx
cmp edx, 0x1000
jb 0x4202ec
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420318
push edx
push ecx
call fcn.0050a4c5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.00522dda
nop dword [eax]
leave
add dword [edx], eax
lodsd eax, dword [esi]
add al, byte [edx]
cmp eax, dword [ecx]
inc edx
add byte [edx + 1], ah
inc edx
add dl, al
add al, byte [edx]
add byte [ecx + eax], al
add al, byte [esp + eax]
add al, 4
add al, 4
add ecx, esp