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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ef81
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5d1e6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
push 0x5ae2e0
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.00403860
push 0x5ae2e0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.00403860
push 0x104
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00553570
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x11e]
push eax
movzx eax, word [ebp - 0x122]
push eax
movzx eax, word [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
push str._d_02d_02d
push eax
call fcn.00403a00
add esp, 0x14
lea ecx, [ebp - 0x13c]
push 0
push 0
push 0x2001f
push 0
push 0
push str.SOFTWARE_skwgt_no
push dword [0x5d2740]
call fcn.004265c0
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x130], 0x104
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push str.swtudate_no
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408340
mov eax, dword [ebp - 0x140]
cmp eax, 1
je 0x408324
cmp eax, 2
jne 0x408340
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4083e5
cmp byte [ebp + eax - 0x115], 0
je 0x4083ec
mov eax, dword [ebp - 0x128]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x408374
mov edx, eax
lea edi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x408356
sub edx, edi
lea ecx, [edx + 1]
push ecx
push eax
push 1
push 0
push str.swtudate_no
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, 1
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x12c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40839d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x128]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4083bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4083c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055026c
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x114], 0
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4083f5
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403d00
mov eax, dword [ebp - 0x12c]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40842c
push 0x80004005
call fcn.00403fd0
push eax
push dword [ebp - 0x128]
call fcn.0055a809
add esp, 8
test eax, eax
setne al
test al, al
je 0x40846c
mov eax, dword [ebp - 0x128]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x408374
mov edx, eax
lea edi, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x408460
jmp 0x40835d
test esi, esi
je 0x40847f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], 0
xor ebx, ebx
jmp 0x408379