Function at 0x40c430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aa58
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4310a0]
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 0x40c470
cmp eax, 2
jge 0x40c64f
xor ecx, ecx
cmp eax, ebx
setne cl
lea edi, [ecx - 0x7fffffff]
cmp eax, ebx
je 0x40c496
mov eax, 0x432430
mov esi, 0x4324c0
jmp 0x40c4a0
mov eax, 0x432530
mov esi, 0x432578
push eax
lea edx, [ebp - 0x68]
push edx
call fcn.004087c0
add esp, 8
lea eax, [ebp - 0x54]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.004087c0
add esp, 8
mov eax, dword [ebp - 0x68]
cmp dword [eax - 0xc], ebx
je 0x40c5f9
mov ecx, dword [ebp - 0x54]
cmp dword [ecx - 0xc], ebx
je 0x40c5f9
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 0x40c5f6
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.0041f080
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.0040c6e0
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x78]
push edx
call fcn.0040c6e0
cmp eax, 2
jne 0x40c5e5
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 0x40c5a4
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.0041de86
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 0x40c5e8
mov esi, dword [ebp - 0x58]
cmp esi, ebx
je 0x40c5f6
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 0x40c61c
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 0x40c63e
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 0x40c470
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.0041d326
mov esp, ebp
pop ebp
ret