Function at 0x4036f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70cc1b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x804580]
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
lea ecx, [ebp - 0x464]
call fcn.0043c00b
mov eax, dword [0x8176f0]
mov dword [ebp - 4], 0
test eax, eax
jne 0x403768
push 0x130
call fcn.00438065
add esp, 4
mov dword [ebp - 0x440], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40375d
mov ecx, eax
call fcn.0040dbf0
jmp 0x40375f
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x8176f0], eax
mov ecx, eax
call fcn.0043c40b
mov edx, eax
mov dword [ebp - 0x428], 0
mov ecx, edx
mov dword [ebp - 0x424], 7
xor eax, eax
mov word [ebp - 0x438], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403793
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.004050a0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 2
call fcn.0043c03f
mov ecx, str.CMMoint.dll
test eax, eax
mov edx, str.CMMoint64.dll
cmove edx, ecx
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4037d2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00404f20
lea ecx, [ebp - 0x464]
call fcn.0043c03f
mov ebx, eax
mov dword [ebp - 0x43c], 0
neg ebx
sbb ebx, ebx
and ebx, 0x100
add ebx, 0xf003f
xor esi, esi
nop word [eax + eax]
cmp esi, 0xe0
jae 0x403926
push dword [esi + 0x804008]
lea eax, [ebp - 0x420]
push dword [esi + 0x804004]
push 0x104
push eax
call fcn.00404b80
mov edi, eax
add esp, 0x10
test edi, edi
js 0x40391b
push 0
lea eax, [ebp - 0x43c]
push eax
push 0
push ebx
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
push dword [esi + section..data]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403916
mov eax, dword [esi + 0x804014]
cmp eax, 1
jne 0x4038e7
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push dword [esi + 0x804010]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00404b80
mov edi, eax
add esp, 0x10
test edi, edi
js 0x403908
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x804014]
jmp 0x4038f4
cmp eax, 4
jne 0x403908
push eax
push dword [esi + 0x804010]
push eax
push 0
push dword [esi + 0x80400c]
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40391b
mov edi, 0x80040201
add esi, 0x1c
test edi, edi
jns 0x403820
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x403962
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403958
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4039a8
push edx
push ecx
call fcn.004382df
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.0043c01e
mov al, 1
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.00438587
mov esp, ebp
pop ebp
ret
call fcn.004c75d7
int3