Function at 0x405730
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x130
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [str.DisplayVersion]
mov edx, dword [0x596c50]
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x596c4c]
push edi
mov dword [esp + 0x2c], ecx
mov cl, byte [0x596c56]
mov dword [esp + 0x28], eax
mov ax, word [0x596c54]
push 0xff
mov byte [esp + 0x3a], cl
mov dword [esp + 0x34], edx
mov edx, dword [str.Version]
mov word [esp + 0x38], ax
mov eax, dword [0x596c5c]
lea ecx, [esp + 0x3d]
push 0
push ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov byte [esp + 0x44], 0
call fcn.00412eb0
push 0x5969f8
push esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 0
call fcn.0040a750
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x24]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x405831
push 0xb
push str.displayver
push esi
call fcn.004196c9
add esp, 0xc
test eax, eax
jne 0x4057f7
lea edi, [esi + 0xb]
push edi
push str.inode_displayver:__s
jmp 0x405814
push 4
push str.ver
push esi
call fcn.004196c9
add esp, 0xc
test eax, eax
jne 0x40581c
lea ebp, [esi + 4]
push ebp
push str.inode_ver:__s
call fcn.00402730
add esp, 8
push 0x5969f8
push 0
call fcn.0040a750
mov esi, eax
add esp, 8
test esi, esi
jne 0x4057d8
test edi, edi
je 0x405a34
test ebp, ebp
je 0x405a34
mov esi, str.HKEY_LOCAL_MACHINE
call fcn.00407920
lea edx, [esp + 0xc]
push edx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40588e
push eax
push str.Open_reg_key_failed._Return:__d.
call fcn.00402730
add esp, 8
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00409b58
add esp, 0x130
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x38]
push edx
push eax
call esi
test eax, eax
jne 0x405a0f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
call esi
test eax, eax
je 0x4058ff
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00409b58
add esp, 0x130
ret
lea ecx, [esp + 0x38]
push ecx
push edi
push str.gateway:__s__pc:__s
call fcn.00402730
lea edx, [esp + 0x44]
push edx
push edi
call fcn.00419585
add esp, 0x14
test eax, eax
jle 0x405949
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00409b58
add esp, 0x130
ret
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.00419585
add esp, 8
test eax, eax
jne 0x405a0f
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
call esi
mov edi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push ecx
call esi
or eax, edi
jne 0x4059e7
push 0xa
push eax
push ebp
call fcn.0040ac69
mov edx, dword [esp + 0x1c]
push edx
mov esi, eax
push esi
push str.argVersion_:__d__pcVersion:__d.
call fcn.00402730
add esp, 0x18
cmp esi, dword [esp + 0x10]
jbe 0x405a0f
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00409b58
add esp, 0x130
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00409b58
add esp, 0x130
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00409b58
add esp, 0x130
ret
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00409b58
add esp, 0x130
ret