Function at 0x402fd6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402fdc
mov eax, dword [esp + 0x5c]
mov dword [0x4d2590], eax
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.00408000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.00408000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.00408000
push dword [esp]
call fcn.00404580
push dword [esp + 8]
mov edx, 0x46529c
pop ecx
call fcn.00408560
je 0x403084
cmp dword [0x4d13ec], 0
je 0x403068
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x4d1404]
or ebx, 0xf003f
push ebx
push 0
push dword [0x4d13cc]
push dword [0x4d13e8]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x403082
lea eax, [esp + 0x10]
push eax
push dword [0x4d13cc]
push dword [0x4d13e8]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x4030e9
lea eax, [esp + 0x18]
push eax
push dword [0x4d13e8]
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x4d13ec], 0
je 0x4030d1
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x4d1404]
or ebx, 0xf003f
push ebx
push 0
push dword [0x4d13cc]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x4030e9
lea eax, [esp + 0x10]
push eax
push dword [0x4d13cc]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x4033ab
mov dword [esp + 0x1c], 0x400
push dword [0x4d2590]
push dword [0x4d2590]
push dword [esp + 0x24]
call fcn.00417e70
lea eax, [esp + 0x24]
push eax
call fcn.0041a3e0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x4033ab
push dword [esp + 0x24]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4031c2
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x4031af
push dword [0x4d2590]
push dword [0x4d2590]
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.00418b90
lea eax, [esp + 0x30]
push eax
call fcn.0041a3e0
jmp 0x4031bd
mov edx, 0x465028
lea ecx, [esp + 0x2c]
call fcn.00408008
jmp 0x4033aa
mov ebx, 2
cmp ebx, dword [esp]
jne 0x403233
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x403220
push dword [0x4d2590]
push dword [0x4d2590]
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.00418b90
lea eax, [esp + 0x30]
push eax
call fcn.0041a3e0
jmp 0x40322e
mov edx, 0x465028
lea ecx, [esp + 0x2c]
call fcn.00408008
jmp 0x4033aa
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4032a1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x40328e
push dword [0x4d2590]
push dword [0x4d2590]
mov eax, dword [esp + 0x3c]
cdq
push edx
push eax
call fcn.004180b0
lea eax, [esp + 0x30]
push eax
call fcn.0041a3e0
jmp 0x40329c
mov edx, 0x4652d6
lea ecx, [esp + 0x2c]
call fcn.00408008
jmp 0x4033aa
mov ebx, 3
cmp ebx, dword [esp]
jne 0x4033aa
mov dword [esp + 0x38], 0x400
push dword [esp + 0x38]
call fcn.004195d0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x4033aa
mov edx, 0x465028
lea ecx, [esp + 0x2c]
call fcn.00408008
mov dword [esp + 0x44], 0
jmp 0x40330c
mov ebx, dword [esp + 0x38]
dec ebx
cmp ebx, dword [esp + 0x44]
jl 0x4033a1
mov ebx, dword [esp + 0x3c]
add ebx, dword [esp + 0x44]
push ebx
pop eax
call fcn.00408510
mov ebx, eax
and ebx, 0xff
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x48]
cmp ebx, 0x10
jge 0x403364
mov edx, dword [esp + 0x2c]
push dword [0x4d2590]
push edx
call fcn.0041a460
mov edx, 0x4652d6
push edx
call fcn.0041a460
lea eax, [esp + 0x30]
push eax
call fcn.0041a3e0
mov edx, dword [esp + 0x2c]
push dword [0x4d2590]
push edx
call fcn.0041a460
push dword [0x4d2590]
push dword [0x4d2590]
mov eax, dword [esp + 0x54]
cdq
push edx
push eax
call fcn.00418ce0
pop eax
lea eax, [esp + 0x30]
push eax
call fcn.0041a3e0
inc dword [esp + 0x44]
jno 0x40330c
push dword [esp + 0x3c]
call fcn.00419520
pop eax
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x28]
push dword [0x4d2590]
push edx
call fcn.0041a460
pop eax
add eax, dword [0x4ce5b4]
jmp 0x4033dd
push dword [esp + 8]
call fcn.0041a4c0
push dword [esp + 0x20]
call fcn.0041a4c0
push dword [esp]
call fcn.0041a4c0
push dword [esp + 4]
call fcn.0041a4c0
push dword [esp + 0x28]
call fcn.0041a4c0
add esp, 0x48
pop ebx
ret 0xc