Function at 0x412b80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, closesocket
cmp dword [esi + 0x14], 8
jb 0x412ba7
mov eax, dword [esi]
jmp 0x412ba9
mov eax, esi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf013f
push 1
push 0
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove edi, dword [ebp - 0xc]
cmp dword [esi + 0x14], 8
jb 0x412bd8
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edx, 0x4ae8c0
mov eax, str.Flase
cmove edi, dword [ebp - 0xc]
cmp byte [ebx + 4], 0
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c10
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.AddSignature
push edi
call esi
cmp dword [ebx + 0x1c], 8
lea edx, [ebx + 8]
jb 0x412c45
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c50
sub ecx, dword [ebp - 0xc]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Content
push edi
call esi
cmp byte [ebx + 0x20], 0
mov eax, str.Flase
mov edx, 0x4ae8c0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c90
sub ecx, dword [ebp - 0xc]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Enabled
push edi
call esi
cmp byte [ebx + 0x21], 0
mov ecx, str.Flase
mov eax, 0x4ae8c0
cmove eax, ecx
mov ecx, eax
mov dword [ebp - 0xc], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412cd0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 1
push 0
push str.Html
push edi
call esi
cmp dword [ebx + 0x38], 8
lea edx, [ebx + 0x24]
jb 0x412d02
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d10
sub ecx, dword [ebp - 0xc]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Recipients
push edi
call esi
cmp dword [ebx + 0x50], 8
lea edx, [ebx + 0x3c]
jb 0x412d40
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d50
sub ecx, dword [ebp - 0xc]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.RecipientsBcc
push edi
call esi
cmp dword [ebx + 0x68], 8
lea edx, [ebx + 0x54]
jb 0x412d80
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d90
sub ecx, dword [ebp - 0xc]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.RecipientsCc
push edi
call esi
cmp dword [ebx + 0x80], 8
lea edx, [ebx + 0x6c]
jb 0x412dc3
mov edx, dword [edx]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412dd0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Subject
push edi
call esi
test edi, edi
je 0x412dff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459a5d
mov esp, ebp
pop ebp
ret 4