Function at 0x40e9d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4318b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x127c
call fcn.00424090
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1278], ecx
mov word [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x1278]
call fcn.0040d720
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40ea36
mov eax, dword [ebp - 0x20]
jmp 0x40efec
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x1020]
push edx
call fcn.0040f0e0
add esp, 8
test eax, eax
jne 0x40ea62
push 0x20f
mov ecx, dword [ebp - 0x1278]
call fcn.0040d610
jmp 0x40efec
mov ecx, dword [ebp - 0x1278]
call fcn.0040d680
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x1278]
call fcn.0040d720
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40ea90
mov eax, dword [ebp - 0x20]
jmp 0x40efec
movzx ecx, word [ebp - 0x1c]
mov dword [ebp - 0x127c], ecx
cmp dword [ebp - 0x127c], 0x13
jg 0x40eacb
cmp dword [ebp - 0x127c], 0x13
je 0x40ecb4
cmp dword [ebp - 0x127c], 8
je 0x40eadc
cmp dword [ebp - 0x127c], 0x11
je 0x40ee1f
jmp 0x40efb2
cmp dword [ebp - 0x127c], 0x4008
je 0x40eaf9
jmp 0x40efb2
push 1
lea edx, [ebp - 0x1020]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040f040
mov dword [ebp - 0x18], eax
jmp 0x40efb2
lea ecx, [ebp - 0x1020]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x112c], eax
lea ecx, [ebp - 0x1128]
call fcn.00403280
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x112c]
push edx
lea ecx, [ebp - 0x1128]
call fcn.0040fdb0
jmp 0x40eb3f
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1128]
call fcn.00403c80
test eax, eax
je 0x40ec96
lea ecx, [ebp - 0x1128]
call fcn.00403c80
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x1134], eax
mov dword [ebp - 0x112c], 0
mov ecx, dword [ebp - 0x1134]
movsx edx, byte [ecx]
test edx, edx
je 0x40ec70
mov eax, dword [ebp - 0x1134]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1138], eax
mov ecx, dword [ebp - 0x1134]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x40ebed
mov eax, dword [ebp - 0x1138]
movsx ecx, byte [eax]
cmp ecx, 0x30
jne 0x40ebed
mov edx, dword [ebp - 0x1130]
mov byte [edx], 0
mov eax, dword [ebp - 0x1130]
add eax, 1
mov dword [ebp - 0x1130], eax
mov ecx, dword [ebp - 0x1138]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1134], eax
jmp 0x40ec5c
mov edx, dword [ebp - 0x1130]
mov eax, dword [ebp - 0x1134]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x1134]
mov al, byte [edx]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40ec3e
mov ecx, dword [ebp - 0x1130]
add ecx, 1
mov dword [ebp - 0x1130], ecx
mov edx, dword [ebp - 0x1134]
add edx, 1
mov dword [ebp - 0x1134], edx
mov eax, dword [ebp - 0x1130]
mov ecx, dword [ebp - 0x1134]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x1130]
add eax, 1
mov dword [ebp - 0x1130], eax
mov ecx, dword [ebp - 0x1134]
add ecx, 1
mov dword [ebp - 0x1134], ecx
mov edx, dword [ebp - 0x112c]
add edx, 1
mov dword [ebp - 0x112c], edx
jmp 0x40eb80
mov eax, dword [ebp - 0x1130]
mov byte [eax], 0
lea ecx, [ebp - 0x1128]
call fcn.00403c80
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040f080
mov dword [ebp - 0x18], eax
jmp 0x40ec9d
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1128]
call fcn.0040fdd0
jmp 0x40efb2
call fcn.00402b10
mov dword [ebp - 0x1148], eax
lea ecx, [ebp - 0x1150]
call fcn.00403280
mov dword [ebp - 4], 3
lea edx, [ebp - 0x1020]
mov dword [ebp - 0x1140], edx
cmp dword [ebp - 0x1140], 0
jne 0x40ecf5
mov dword [ebp - 0x1280], 0
jmp 0x40ed9e
mov eax, dword [ebp - 0x1140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x114c], eax
mov ecx, dword [ebp - 0x114c]
shl ecx, 1
cmp ecx, 0x400
ja 0x40ed5d
mov edx, dword [ebp - 0x114c]
shl edx, 1
push edx
call fcn.00409060
add esp, 4
movzx eax, al
test eax, eax
je 0x40ed5d
mov eax, dword [ebp - 0x114c]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00424090
mov dword [ebp - 0x1284], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x1284]
mov dword [ebp - 0x1288], ecx
jmp 0x40ed77
mov edx, dword [ebp - 0x114c]
shl edx, 1
push edx
lea ecx, [ebp - 0x1150]
call fcn.00409560
mov dword [ebp - 0x1288], eax
mov eax, dword [ebp - 0x1148]
push eax
mov ecx, dword [ebp - 0x114c]
push ecx
mov edx, dword [ebp - 0x1140]
push edx
mov eax, dword [ebp - 0x1288]
push eax
call fcn.00402b20
mov dword [ebp - 0x1280], eax
mov ecx, dword [ebp - 0x1280]
mov dword [ebp - 0x1144], ecx
cmp dword [ebp - 0x1144], 0
jne 0x40edda
mov dword [ebp - 0x1270], 0x8007000e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1150]
call fcn.004095d0
mov eax, dword [ebp - 0x1270]
jmp 0x40efec
lea edx, [ebp - 0x1154]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1144]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x1154]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f010
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1150]
call fcn.004095d0
jmp 0x40efb2
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x115c], eax
mov ecx, dword [ebp - 0x115c]
and ecx, 1
je 0x40ee47
mov eax, 0x80004005
jmp 0x40efec
mov eax, dword [ebp - 0x115c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1158], eax
lea ecx, [ebp - 0x1268]
call fcn.00403280
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1158]
push edx
lea ecx, [ebp - 0x1268]
call fcn.0040fdb0
jmp 0x40ee88
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1268]
call fcn.00403c80
test eax, eax
jne 0x40eec5
mov dword [ebp - 0x1274], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1268]
call fcn.0040fdd0
mov eax, dword [ebp - 0x1274]
jmp 0x40efec
mov eax, dword [ebp - 0x1158]
push eax
push 0
lea ecx, [ebp - 0x1268]
call fcn.00403c80
push eax
call fcn.00423d20
add esp, 0xc
mov dword [ebp - 0x126c], 0
jmp 0x40eefd
mov ecx, dword [ebp - 0x126c]
add ecx, 1
mov dword [ebp - 0x126c], ecx
mov edx, dword [ebp - 0x126c]
cmp edx, dword [ebp - 0x115c]
jge 0x40ef73
mov eax, dword [ebp - 0x126c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x1268]
call fcn.00403c80
add eax, esi
mov dword [ebp - 0x128c], eax
mov eax, dword [ebp - 0x126c]
and eax, 1
mov esi, 1
sub esi, eax
shl esi, 2
mov ecx, dword [ebp - 0x126c]
mov dl, byte [ebp + ecx - 0x1020]
push edx
call fcn.0040f1a0
add esp, 4
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x128c]
movzx edx, byte [ecx]
or edx, eax
mov eax, dword [ebp - 0x128c]
mov byte [eax], dl
jmp 0x40eeee
mov ecx, dword [ebp - 0x1158]
push ecx
lea ecx, [ebp - 0x1268]
call fcn.00403c80
push eax
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403c80
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1268]
call fcn.0040fdd0
cmp dword [ebp - 0x18], 0
je 0x40efcd
mov dword [ebp - 0x14], 0x204
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040e6f0
add esp, 4
jmp 0x40efec
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x1278]
call fcn.0040d720
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40efea
mov eax, dword [ebp - 0x20]
jmp 0x40efec
xor eax, eax
lea esp, [ebp - 0x1298]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc