Function at 0x40e4f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x224], ecx
xor eax, eax
mov word [ebp - 0x220], ax
push 0x206
push 0
lea ecx, [ebp - 0x21e]
push ecx
call fcn.00437410
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0xd], 0
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
mov ecx, dword [ebp - 0x224]
call fcn.00409b80
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
mov dword [eax + 0x54], ecx
cmp dword [ebp - 0x228], 0
je 0x40e89d
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp - 0x224]
call fcn.00409b80
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x22c]
mov dword [eax + 0x54], ecx
cmp dword [ebp - 0x22c], 0
jne 0x40e89b
mov ecx, dword [ebp - 0x224]
call fcn.00409b80
push eax
push str.URL:_s_Protocol
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.00430635
add esp, 0x10
lea eax, [ebp - 0x220]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
add ecx, 2
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x230]
mov ax, word [edx]
mov word [ebp - 0x236], ax
add dword [ebp - 0x230], 2
cmp word [ebp - 0x236], 0
jne 0x40e611
mov ecx, dword [ebp - 0x230]
sub ecx, dword [ebp - 0x234]
sar ecx, 1
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x23c]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 1
push 0
push 0x48e128
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x240]
mov dword [eax + 0x54], ecx
cmp dword [ebp - 0x240], 0
je 0x40e68e
jmp 0x40e8f0
push 4
push 0x48ad2f
push 1
push 0
push str.URL_Protocol
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x244]
mov dword [eax + 0x54], ecx
cmp dword [ebp - 0x244], 0
je 0x40e6cb
jmp 0x40e8f0
lea edx, [ebp - 8]
push edx
push 0x48e148
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x248]
mov dword [ecx + 0x54], edx
cmp dword [ebp - 0x248], 0
jne 0x40e89b
mov ecx, dword [ebp - 0x224]
add ecx, 0x38
call fcn.00409b80
push eax
push 0x48e160
push 0x104
lea eax, [ebp - 0x220]
push eax
call fcn.00430635
add esp, 0x10
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
add edx, 2
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x24c]
mov cx, word [eax]
mov word [ebp - 0x252], cx
add dword [ebp - 0x24c], 2
cmp word [ebp - 0x252], 0
jne 0x40e743
mov edx, dword [ebp - 0x24c]
sub edx, dword [ebp - 0x250]
sar edx, 1
mov dword [ebp - 0x258], edx
mov eax, dword [ebp - 0x258]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x220]
push edx
push 1
push 0
push 0x48e168
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x25c]
mov dword [ecx + 0x54], edx
cmp dword [ebp - 0x25c], 0
je 0x40e7c0
jmp 0x40e8f0
lea eax, [ebp - 0xc]
push eax
push 0x48e16c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x260]
mov dword [edx + 0x54], eax
cmp dword [ebp - 0x260], 0
jne 0x40e89b
mov ecx, dword [ebp - 0x224]
add ecx, 0x38
call fcn.00409b80
push eax
push str.__s_____1_
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call fcn.00430635
add esp, 0x10
lea edx, [ebp - 0x220]
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x264]
add eax, 2
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x264]
mov dx, word [ecx]
mov word [ebp - 0x26a], dx
add dword [ebp - 0x264], 2
cmp word [ebp - 0x26a], 0
jne 0x40e838
mov eax, dword [ebp - 0x264]
sub eax, dword [ebp - 0x268]
sar eax, 1
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x270]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x220]
push eax
push 1
push 0
push 0x48e1ac
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x224]
mov dword [edx + 0x54], eax
jmp 0x40e8e8
mov eax, dword [ebp - 0x224]
mov dword [eax + 0x54], 0xffffffff
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x224]
call fcn.00409b80
push eax
push str._s_Key_is_already_present.
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call fcn.00430635
add esp, 0x10
lea edx, [ebp - 0x220]
push edx
mov ecx, dword [ebp - 0x224]
add ecx, 0x58
call fcn.0040ced0
xor eax, eax
jne 0x40e541
mov ecx, dword [ebp - 0x224]
cmp dword [ecx + 0x54], 0
je 0x40e907
mov ecx, dword [ebp - 0x224]
call fcn.0040e450
cmp dword [ebp - 0xc], 0
je 0x40e91e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
je 0x40e935
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x40e94c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x54]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret