Function at 0x401300
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x562988
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5c0020]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0020]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
push 0x1c
push str.SOFTWARERobustaPortForward
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], eax
call fcn.00401710
push 1
push 0x5995d0
lea ecx, [esp + 0x3c]
call fcn.00401710
push 7
push str.General
lea ecx, [esp + 0x3c]
call fcn.00401710
cmp byte [ebp + 8], 0
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x34]
je 0x401470
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x30]
cmovae eax, dword [esp + 0x34]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4014a1
push str.VersionNotify
lea ecx, [esp + 0x18]
lea esi, [edi + 4]
call fcn.00401580
cmp dword [esp + 0x28], 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ecx, [esp + 0x34]
push ecx
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push 0
push eax
push dword [esp + 0x44]
mov dword [esp + 0x28], 4
call ebx
test eax, eax
je 0x40140f
mov dword [esi], 1
cmp dword [esp + 0x28], 8
jb 0x401422
push dword [esp + 0x14]
call fcn.004140d4
add esp, 4
push str.UseNativeUPnpService
lea ecx, [esp + 0x18]
lea esi, [edi + 8]
call fcn.00401580
cmp dword [esp + 0x28], 8
lea ecx, [esp + 0x10]
push ecx
push esi
lea ecx, [esp + 0x34]
push ecx
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push 0
push eax
push dword [esp + 0x44]
mov dword [esp + 0x28], 4
call ebx
test eax, eax
je 0x40152b
mov dword [esi], 1
jmp 0x40152b
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x4c]
cmovae eax, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4014a8
xor bl, bl
jmp 0x40154a
push str.VersionNotify
lea ecx, [esp + 0x18]
call fcn.00401580
mov eax, dword [edi + 4]
cmp dword [esp + 0x28], 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
push 4
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push 0
push eax
push dword [esp + 0x44]
call esi
cmp dword [esp + 0x28], 8
jb 0x4014f6
push dword [esp + 0x14]
call fcn.004140d4
add esp, 4
push str.UseNativeUPnpService
lea ecx, [esp + 0x18]
call fcn.00401580
mov eax, dword [edi + 8]
cmp dword [esp + 0x28], 8
push 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
push 4
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push 0
push eax
push dword [esp + 0x44]
call esi
cmp dword [esp + 0x28], 8
jb 0x40153e
push dword [esp + 0x14]
call fcn.004140d4
add esp, 4
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
cmp dword [esp + 0x48], 8
jb 0x40155d
push dword [esp + 0x34]
call fcn.004140d4
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0053786f
mov esp, ebp
pop ebp
ret 4