Function at 0x401620
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x434
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0xc7
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x320
push 0x417254
push edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
call fcn.00403030
mov ebp, dword [esp + 0x454]
mov eax, 1
lea ecx, [esp + 0x348]
mov dword [ebp + 0xc], eax
mov word [ebp + 0x2a], ax
mov eax, dword [esp + 0x450]
push eax
push 0x417220
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea edx, [esp + 0x10]
lea eax, [esp + 0x340]
push edx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401852
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
push 0x417214
push ecx
call ebx
test eax, eax
je 0x4016ea
mov edx, dword [esp + 0x10]
push edx
jmp 0x40184c
mov ecx, dword [esp + 0x20]
mov dx, word [esp + 0x24]
lea eax, [ebp + 4]
mov dword [esp + 0x14], edi
mov dword [eax], ecx
lea ecx, [esp + 0x20]
mov word [eax + 4], dx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push 0x417208
push eax
call ebx
test eax, eax
jne 0x401847
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x450]
cmp ecx, eax
jg 0x401847
lea edx, [ecx + 3]
xor eax, eax
mov word [ebp + 0x3a], dx
mov byte [ebp + 0x3d], cl
mov al, ch
mov edx, ecx
lea esi, [esp + 0x20]
lea edi, [ebp + 0x3f]
shr ecx, 2
mov byte [ebp + 0x3c], 0x22
mov byte [ebp + 0x3e], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
mov esi, 0x320
push ecx
push edx
push 0
push 0x4171fc
push eax
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
jne 0x401847
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x20]
push 0x4171f0
push edx
call edi
add esp, 8
test eax, eax
je 0x4017ac
mov byte [ebp + 0x34], 0x40
lea eax, [esp + 0x20]
push 0x4171e4
push eax
call edi
add esp, 8
test eax, eax
je 0x4017c3
mov byte [ebp + 0x34], 0x80
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x4171d8
push ecx
mov dword [esp + 0x2c], esi
call ebx
test eax, eax
je 0x4017ef
mov edx, dword [esp + 0x10]
push edx
jmp 0x40184c
mov ecx, dword [esp + 0x10]
mov al, byte [esp + 0x24]
push ecx
mov byte [ebp + 0x35], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x448]
mov esi, dword [esp + 0x1c]
xor edx, edx
mov edi, 1
mov dl, byte [ebp + 0x34]
mov dword [ebp + 0xc], edi
push edx
push eax
push 0x41719c
push esi
mov word [ebp + 0x2a], di
call fcn.00403030
push 0x41717c
push esi
call fcn.00403030
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret 0xc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x434
ret 0xc