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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556471
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5b6e64]
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
mov dword [ebp - 4], 0
call fcn.004176b0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40841f
push 0x80004005
call fcn.00403110
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 1
call fcn.004176b0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40844f
push 0x80004005
call fcn.00403110
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x128], edi
push 0x104
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.0053aab0
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 - 0x12c]
push str._d_02d_02d
push eax
call fcn.00404c80
add esp, 0x14
lea ecx, [ebp - 0x13c]
push 0
push 0
push 0x2001f
push 0
push 0
push str.SOFTWARE_skwgt_tu2
push dword [0x5b7700]
call fcn.0040c310
mov ebx, 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
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408538
mov eax, dword [ebp - 0x140]
cmp eax, 1
je 0x40851c
cmp eax, 2
jne 0x408538
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4085dc
cmp byte [ebp + eax - 0x115], 0
je 0x4085e3
mov esi, dword [ebp - 0x12c]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x40856e
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408550
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push str.swtudate
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x128], 1
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408596
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4085af
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4085ba
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x128]
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.00537a6f
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x114], 0
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4085f0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00402e70
mov edi, dword [ebp - 0x128]
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x408627
push 0x80004005
call fcn.00403110
mov esi, dword [ebp - 0x12c]
push edi
push esi
call fcn.0053d922
add esp, 8
test eax, eax
setne al
test al, al
je 0x408660
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x40856e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408654
jmp 0x408557
test ebx, ebx
je 0x408673
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x128], 0
jmp 0x408578