Function at 0x401c80
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00407090
push 0xffffffffffffffff
push 0x40e513
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xac
mov eax, dword [0x416188]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ecx
xor eax, eax
mov word [ebp - 0x38], ax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x9c], 0
lea ecx, [ebp + 0x208]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.00403240
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x401cfe
mov eax, dword [ebp - 0x18]
jmp 0x40225f
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp + 0x208]
push eax
call fcn.00405e70
add esp, 8
test eax, eax
jne 0x401d1f
mov eax, 0x80020009
jmp 0x40225f
mov ecx, dword [ebp - 0x40]
call fcn.004051d0
lea ecx, [ebp + 0x208]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.00403240
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x401d47
mov eax, dword [ebp - 0x18]
jmp 0x40225f
movzx edx, word [ebp - 0x38]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0x13
jg 0x401d73
cmp dword [ebp - 0x34], 0x13
je 0x401fb8
cmp dword [ebp - 0x34], 8
je 0x401d85
cmp dword [ebp - 0x34], 0x11
je 0x40204a
jmp 0x402222
cmp dword [ebp - 0x34], 0x4008
je 0x401e2b
jmp 0x402222
xor eax, eax
jne 0x401d85
lea ecx, [ebp + 0x208]
test ecx, ecx
je 0x401d9c
mov dword [ebp - 0x5c], 1
jmp 0x401da3
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xb8], edx
cmp dword [ebp - 0xb8], 0
jne 0x401dbe
mov dword [ebp - 0x1c], 0xd
jmp 0x401e26
xor eax, eax
jne 0x401d89
lea ecx, [ebp + 0x208]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
add edx, 2
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0x2c]
mov cx, word [eax]
mov word [ebp - 0x52], cx
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x52], 0
jne 0x401dd7
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0xb0]
sar edx, 1
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp + 0x208]
push edx
push 1
push 0
mov eax, dword [ebp + 0x2218]
push eax
mov ecx, dword [ebp + 0x2214]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
jmp 0x402222
lea eax, [ebp + 0x208]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0x28]
mov ax, word [edx]
mov word [ebp - 0x50], ax
add dword [ebp - 0x28], 2
cmp word [ebp - 0x50], 0
jne 0x401e40
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0xb4]
sar ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
add edx, 2
mov dword [ebp - 0x3c], edx
mov dword [ebp], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push 2
mov eax, dword [ebp - 0x3c]
push eax
call section..text
add esp, 8
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp]
call fcn.004022e0
jmp 0x401ea9
mov dword [ebp - 4], 0
jmp 0x401eb9
mov edx, dword [ebp]
mov dword [ebp - 0x98], edx
cmp dword [ebp - 0x98], 0
je 0x401f95
mov eax, dword [ebp]
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0x208]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x20]
movzx eax, word [edx]
test eax, eax
je 0x401f5b
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x20]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x401f32
mov ecx, dword [ebp - 0x60]
movzx edx, word [ecx]
cmp edx, 0x30
jne 0x401f32
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov word [ecx], ax
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x20], eax
jmp 0x401f50
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
jmp 0x401ee5
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov word [edx], cx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov word [edx], cx
mov eax, dword [ebp]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp + 0x2218]
push edx
mov ecx, dword [ebp + 0x2214]
call fcn.00405050
mov dword [ebp - 0x1c], eax
jmp 0x401f9c
mov dword [ebp - 0x1c], 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x401fb3
lea ecx, [ebp]
call fcn.00402da0
jmp 0x402222
mov dword [ebp - 0xbc], 3
mov dword [ebp - 0x44], 0
lea ecx, [ebp + 0x208]
mov dword [ebp - 0xac], ecx
lea edx, [ebp - 0x80]
push edx
push 0
push 0
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xa0], ecx
xor edx, edx
jne 0x401ff3
push 4
lea eax, [ebp - 0xa0]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x2218]
push ecx
mov edx, dword [ebp + 0x2214]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x44], 0
je 0x402045
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.0040671f
add esp, 4
jmp 0x40201d
jmp 0x402222
lea edx, [ebp + 0x208]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
add eax, 2
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx]
mov word [ebp - 0x4e], dx
add dword [ebp - 0x30], 2
cmp word [ebp - 0x4e], 0
jne 0x40205f
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0xa4]
sar eax, 1
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
and edx, 1
je 0x4020a0
mov eax, 0x80004005
jmp 0x40225f
mov eax, dword [ebp - 0x48]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp + 0x104], 0
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
push 1
mov eax, dword [ebp - 0x4c]
push eax
call section..text
add esp, 8
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
lea ecx, [ebp + 0x104]
call fcn.004022e0
jmp 0x4020e8
mov dword [ebp - 4], 3
jmp 0x4020f8
mov edx, dword [ebp + 0x104]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 0
jne 0x402136
mov dword [ebp - 0x74], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x108]
cmp dword [ebp + 0x104], eax
je 0x40212e
lea ecx, [ebp + 0x104]
call fcn.00402da0
mov eax, dword [ebp - 0x74]
jmp 0x40225f
mov ecx, dword [ebp + 0x104]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004070c0
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x402163
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x48]
jge 0x4021c2
mov eax, dword [ebp + 0x104]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x84]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x24]
and ecx, 1
mov esi, 1
sub esi, ecx
shl esi, 2
mov edx, dword [ebp - 0x24]
movzx eax, word [ebp + edx*2 + 0x208]
push eax
call fcn.004028b0
add esp, 4
movzx edx, al
mov ecx, esi
shl edx, cl
mov eax, dword [ebp - 0x58]
movzx ecx, byte [eax]
or ecx, edx
mov edx, dword [ebp - 0x58]
mov byte [edx], cl
jmp 0x40215a
mov eax, dword [ebp + 0x104]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp + 0x2214]
mov edx, dword [ecx]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
push 3
push 0
mov edx, dword [ebp + 0x2218]
push edx
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x108]
cmp dword [ebp + 0x104], ecx
je 0x402222
lea ecx, [ebp + 0x104]
call fcn.00402da0
cmp dword [ebp - 0x1c], 0
je 0x402240
mov dword [ebp - 0x9c], 0x204
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004027c0
add esp, 4
jmp 0x40225f
mov eax, dword [ebp + 0x221c]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00403240
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x40225d
mov eax, dword [ebp - 0x18]
jmp 0x40225f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.00406c34
add ebp, 0x220c
mov esp, ebp
pop ebp
ret 0xc