Function at 0x418490
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462c63
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x47a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x47d43c]
cmp eax, dword [edx + 4]
jle 0x41851e
push 0x47d43c
call fcn.00437958
add esp, 4
cmp dword [0x47d43c], 0xffffffff
jne 0x41851e
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x4187f1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x465520
mov dword [0x47d440], eax
call fcn.00437f3d
add esp, 4
push 0x47d43c
call fcn.00437907
add esp, 4
mov eax, dword [0x47d440]
cmp dword [eax - 0xc], 0
je 0x41854a
lea ecx, [eax - 0x10]
call fcn.00405cd0
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x47cfec]
test al, 1
jne 0x41858c
or eax, 1
mov dword [0x47cfec], eax
push 0x64
push 0
push 0x47cf88
mov dword [ebp - 4], 0
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x47cfa0]
lea ecx, [ecx - 0x10]
call fcn.00405cd0
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
push 0x46f9f8
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00424740
add esp, 8
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [eax]
mov esi, dword [0x47d440]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x418616
cmp dword [esi + 0xc], 0
jl 0x418608
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x418608
call fcn.00405cd0
mov dword [ebp - 0x10], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4185fe
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [0x47d440], eax
jmp 0x418616
push dword [edx - 0xc]
mov ecx, 0x47d440
push edx
call fcn.004058c0
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418634
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x47d440]
cmp dword [eax - 0xc], 0
je 0x418647
lea ecx, [eax - 0x10]
jmp 0x4187b4
lea ecx, [ebp - 0x10]
call fcn.00425740
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov esi, dword [0x47d440]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4186aa
cmp dword [esi + 0xc], 0
jl 0x41869c
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x41869c
call fcn.00405cd0
mov dword [ebp - 0x18], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418692
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [0x47d440], eax
jmp 0x4186aa
push dword [edx - 0xc]
mov ecx, 0x47d440
push edx
call fcn.004058c0
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4186c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x47d440]
mov esi, eax
mov dword [ebp - 0x18], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4186d5
sub esi, ecx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
sar esi, 1
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x41871f
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41874f
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
lea eax, [esi*2 + 2]
push eax
push dword [ebp - 0x18]
push 1
push 0
push 0x46f9f8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x418752
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418752
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4187ab
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x4187fb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push 0x470104
push eax
call fcn.00405a50
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4187ab
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x47d440]
lea ecx, [ecx - 0x10]
call fcn.00405cd0
mov esi, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov dword [esi], eax
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4187dd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401920
push 0x80004005
call fcn.00401920
int3