Function at 0x40b8e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427da8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x42e0a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], eax
jmp 0x40b920
cmp eax, 2
jge 0x40baff
xor ecx, ecx
cmp eax, ebx
setne cl
lea edi, [ecx - 0x7fffffff]
cmp eax, ebx
je 0x40b946
mov eax, 0x42f590
mov esi, 0x42f5dc
jmp 0x40b950
mov eax, 0x42f600
mov esi, 0x42f64c
push eax
lea edx, [ebp - 0x68]
push edx
call fcn.00408480
add esp, 8
lea eax, [ebp - 0x54]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00408480
add esp, 8
mov eax, dword [ebp - 0x68]
cmp dword [eax - 0xc], ebx
je 0x40baa9
mov ecx, dword [ebp - 0x54]
cmp dword [ecx - 0xc], ebx
je 0x40baa9
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x58]
push ecx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
mov byte [ebp - 4], 3
push edi
mov dword [ebp - 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40baa6
mov edx, dword [ebp - 0x58]
push 0x2a
lea ecx, [ebp - 0x3e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x40], ax
call fcn.0041c670
mov edx, dword [ebp - 0x54]
add esp, 0xc
push edx
lea eax, [ebp - 0x78]
push eax
lea edi, [ebp - 0x6c]
lea esi, [ebp - 0x40]
mov dword [ebp - 0x6c], 0x16
call fcn.0040bb90
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x78]
push edx
call fcn.0040bb90
cmp eax, 2
jne 0x40ba95
xor eax, eax
lea ecx, [ebp - 0x50]
push ecx
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov word [ebp - 0x42], ax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push str.FileTimeToLocalFileTime
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40ba54
lea ecx, [ebp - 0x64]
push ecx
mov edx, ecx
push edx
call eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
push eax
push ecx
push str._I64u
lea edx, [ebp - 0x40]
push 0x16
push edx
call fcn.0041b611
mov esi, dword [ebp - 0x54]
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x40]
push edx
push 1
push ebx
push esi
mov esi, dword [ebp - 0x58]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40ba98
mov esi, dword [ebp - 0x58]
cmp esi, ebx
je 0x40baa6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bacc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
jmp 0x40b920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ac16
mov esp, ebp
pop ebp
ret