Function at 0x401730
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x320
push ebx
push esi
mov esi, dword [esp + 0x32c]
push edi
mov edi, dword [esp + 0x34c]
push ebp
mov ebx, dword [esp + 0x348]
mov ecx, dword [esp + 0x344]
mov eax, dword [edi]
test ebx, ebx
mov dword [esi + 4], eax
jne 0x4014e1
mov ebx, ecx
mov eax, dword [esp + 0x354]
dec eax
cmp eax, 3
ja case.default.0x4014f2
jmp dword [eax*4 + 0x4017f8]
lea eax, [esp + 0x10]
lea edx, [esp + 0x28]
lea ebp, [esp + 0x14]
push eax
mov eax, dword [esp + 0x344]
push edx
mov dword [esp + 0x18], 4
push ebp
push 0
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebp
test eax, eax
jne case.default.0x4014f2
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
push ebx
push str._s:_0x_08lx
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x40]
mov ebp, dword [esp + 0x34c]
mov ebx, dword [esp + 0x348]
add esp, 0x10
mov dword [esi + 0x18], ecx
nop
push esi
push 0
push 0x1100
push ebp
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop ebp
mov dword [edi], eax
pop edi
pop esi
pop ebx
add esp, 0x320
ret
lea eax, [esp + 0x10]
lea edx, [esp + 0x130]
lea ebp, [esp + 0x14]
push eax
mov eax, dword [esp + 0x344]
push edx
mov dword [esp + 0x18], 0xff
push ebp
push 0
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebp
test eax, eax
jne case.default.0x4014f2
lea eax, [esp + 0x130]
lea ecx, [esp + 0x30]
push eax
push ebx
push str._s:__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x40]
mov ebp, dword [esp + 0x34c]
mov ebx, dword [esp + 0x348]
add esp, 0x10
mov dword [esi + 0x18], ecx
nop
push esi
push 0
push 0x1100
push ebp
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop ebp
mov dword [edi], eax
pop edi
pop esi
pop ebx
add esp, 0x320
ret
lea eax, [esp + 0x10]
lea edx, [esp + 0x130]
lea ebp, [esp + 0x14]
push eax
mov eax, dword [esp + 0x344]
push edx
mov dword [esp + 0x18], 0xff
push ebp
push 0
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebp
test eax, eax
jne case.default.0x4014f2
mov eax, dword [esp + 0x34c]
test eax, eax
jne 0x40164b
lea eax, [esp + 0x130]
mov dword [esp + 0x34c], eax
jmp 0x401678
lea ecx, [esp + 0x130]
push ecx
push eax
lea eax, [esp + 0x238]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x240]
mov dword [esp + 0x35c], ecx
add esp, 0x10
lea eax, [esp + 0x130]
lea ecx, [esp + 0x30]
push eax
push ebx
push str._s:__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x40]
add esp, 0x10
mov ecx, dword [edi]
mov dword [esi + 0x18], edx
mov ebp, dword [esp + 0x33c]
push esi
mov ebx, dword [esp + 0x33c]
push 0
push 0x1100
mov dword [esi + 4], ecx
push ebp
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esp + 0x34c]
push 0
mov dword [edi], eax
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00403040
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x13c]
add esp, 0xc
push ecx
push str.Version:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x13c]
add esp, 0xc
mov ecx, dword [esi]
mov edx, dword [edi]
mov dword [esp + 0x2c], ecx
push esi
push 0
mov dword [esi], edx
push 0x1100
mov dword [esi + 0x18], eax
mov dword [esi + 4], 0
push ebp
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
pop ebp
mov dword [esi], ecx
pop edi
pop esi
pop ebx
add esp, 0x320
ret
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
lea ebp, [esp + 0x14]
push eax
mov eax, dword [esp + 0x344]
push edx
mov dword [esp + 0x18], 0x10
push ebp
push 0
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call ebp
test eax, eax
jne case.default.0x4014f2
xor eax, eax
mov al, byte [esp + 0x27]
push eax
xor eax, eax
mov al, byte [esp + 0x2a]
push eax
xor eax, eax
mov al, byte [esp + 0x2d]
push eax
xor eax, eax
mov al, byte [esp + 0x30]
push eax
xor eax, eax
mov al, byte [esp + 0x33]
push eax
xor eax, eax
mov al, byte [esp + 0x36]
push eax
xor eax, eax
mov al, byte [esp + 0x39]
push eax
xor eax, eax
mov al, byte [esp + 0x3c]
push eax
xor eax, eax
mov ax, word [esp + 0x3e]
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x54]
and eax, 0xffff
push eax
push ecx
push ebx
push str._s:_0x_08lx__04x__04x__02x_02x_02x_02x_02x_0x02x_02x_02x
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x68]
mov ebp, dword [esp + 0x374]
mov ebx, dword [esp + 0x370]
add esp, 0x38
mov dword [esi + 0x18], ecx
nop
push esi
push 0
push 0x1100
push ebp
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov dword [edi], eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x320
ret