Function at 0x41ab70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436678
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x46d624]
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 0x41abb0
cmp eax, 2
jge 0x41ad91
xor ecx, ecx
cmp eax, ebx
setne cl
lea esi, [ecx - 0x7fffffff]
cmp eax, ebx
je 0x41abd6
mov eax, 0x46d4a0
mov edi, 0x46d4ec
jmp 0x41abe0
mov eax, 0x46d520
mov edi, 0x46d56c
push eax
lea edx, [ebp - 0x68]
push edx
call fcn.004178e0
add esp, 8
lea eax, [ebp - 0x58]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.004178e0
add esp, 8
mov eax, dword [ebp - 0x68]
cmp dword [eax - 0xc], ebx
je 0x41ad3b
mov ecx, dword [ebp - 0x58]
cmp dword [ecx - 0xc], ebx
je 0x41ad3b
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
push esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x41ad38
mov edi, dword [ebp - 0x54]
push 0x2a
lea eax, [ebp - 0x3e]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x40], dx
call fcn.0042a550
mov eax, dword [ebp - 0x58]
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x40]
push edx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x54], 0x16
call fcn.0041aaf0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x40]
push edx
push eax
lea ecx, [ebp - 0x74]
call fcn.0041aaf0
cmp eax, 2
jne 0x41ad2a
xor eax, eax
lea edx, [ebp - 0x50]
xor ecx, ecx
push edx
mov word [ebp - 0x50], cx
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 eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x50]
push ecx
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 0x41acee
lea edx, [ebp - 0x64]
push edx
mov ecx, edx
push ecx
call eax
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
push edx
push eax
push str._I64u
lea ecx, [ebp - 0x40]
push 0x16
push ecx
call fcn.0042b44f
mov esi, dword [ebp - 0x58]
add esp, 0x14
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x40]
push ecx
push 1
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp edi, ebx
je 0x41ad38
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ad5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ad80
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 0x41abb0
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.0042a541
mov esp, ebp
pop ebp
ret