Function at 0x40e5a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4177c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1284
call fcn.004117a0
mov eax, dword [0x41c20c]
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1280], ecx
mov word [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1280]
call fcn.0040d2c0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40e60e
mov eax, dword [ebp - 0x20]
jmp 0x40ebc4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x1028]
push edx
call fcn.0040ecc0
add esp, 8
test eax, eax
jne 0x40e63a
push 0x20f
mov ecx, dword [ebp - 0x1280]
call fcn.0040d1b0
jmp 0x40ebc4
mov ecx, dword [ebp - 0x1280]
call fcn.0040d220
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1280]
call fcn.0040d2c0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40e668
mov eax, dword [ebp - 0x20]
jmp 0x40ebc4
movzx ecx, word [ebp - 0x1c]
mov dword [ebp - 0x1284], ecx
cmp dword [ebp - 0x1284], 0x13
jg 0x40e6a3
cmp dword [ebp - 0x1284], 0x13
je 0x40e88c
cmp dword [ebp - 0x1284], 8
je 0x40e6b4
cmp dword [ebp - 0x1284], 0x11
je 0x40e9f7
jmp 0x40eb8a
cmp dword [ebp - 0x1284], 0x4008
je 0x40e6d1
jmp 0x40eb8a
push 1
lea edx, [ebp - 0x1028]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ec20
mov dword [ebp - 0x18], eax
jmp 0x40eb8a
lea ecx, [ebp - 0x1028]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x1134], eax
lea ecx, [ebp - 0x1130]
call fcn.00409980
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1134]
push edx
lea ecx, [ebp - 0x1130]
call fcn.0040fa00
jmp 0x40e717
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1130]
call fcn.00408500
test eax, eax
je 0x40e86e
lea ecx, [ebp - 0x1130]
call fcn.00408500
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x1134], 0
mov ecx, dword [ebp - 0x113c]
movsx edx, byte [ecx]
test edx, edx
je 0x40e848
mov eax, dword [ebp - 0x113c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1140], eax
mov ecx, dword [ebp - 0x113c]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x40e7c5
mov eax, dword [ebp - 0x1140]
movsx ecx, byte [eax]
cmp ecx, 0x30
jne 0x40e7c5
mov edx, dword [ebp - 0x1138]
mov byte [edx], 0
mov eax, dword [ebp - 0x1138]
add eax, 1
mov dword [ebp - 0x1138], eax
mov ecx, dword [ebp - 0x1140]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x113c], eax
jmp 0x40e834
mov edx, dword [ebp - 0x1138]
mov eax, dword [ebp - 0x113c]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x113c]
mov al, byte [edx]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40e816
mov ecx, dword [ebp - 0x1138]
add ecx, 1
mov dword [ebp - 0x1138], ecx
mov edx, dword [ebp - 0x113c]
add edx, 1
mov dword [ebp - 0x113c], edx
mov eax, dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x113c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x1138]
add eax, 1
mov dword [ebp - 0x1138], eax
mov ecx, dword [ebp - 0x113c]
add ecx, 1
mov dword [ebp - 0x113c], ecx
mov edx, dword [ebp - 0x1134]
add edx, 1
mov dword [ebp - 0x1134], edx
jmp 0x40e758
mov eax, dword [ebp - 0x1138]
mov byte [eax], 0
lea ecx, [ebp - 0x1130]
call fcn.00408500
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040ec60
mov dword [ebp - 0x18], eax
jmp 0x40e875
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1130]
call fcn.0040f9e0
jmp 0x40eb8a
call fcn.00402020
mov dword [ebp - 0x1150], eax
lea ecx, [ebp - 0x1158]
call fcn.00409980
mov dword [ebp - 4], 3
lea edx, [ebp - 0x1028]
mov dword [ebp - 0x1148], edx
cmp dword [ebp - 0x1148], 0
jne 0x40e8cd
mov dword [ebp - 0x1288], 0
jmp 0x40e976
mov eax, dword [ebp - 0x1148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x1154], eax
mov ecx, dword [ebp - 0x1154]
shl ecx, 1
cmp ecx, 0x400
ja 0x40e935
mov edx, dword [ebp - 0x1154]
shl edx, 1
push edx
call fcn.00408ae0
add esp, 4
movzx eax, al
test eax, eax
je 0x40e935
mov eax, dword [ebp - 0x1154]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.004117a0
mov dword [ebp - 0x128c], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x128c]
mov dword [ebp - 0x1290], ecx
jmp 0x40e94f
mov edx, dword [ebp - 0x1154]
shl edx, 1
push edx
lea ecx, [ebp - 0x1158]
call fcn.00408fe0
mov dword [ebp - 0x1290], eax
mov eax, dword [ebp - 0x1150]
push eax
mov ecx, dword [ebp - 0x1154]
push ecx
mov edx, dword [ebp - 0x1148]
push edx
mov eax, dword [ebp - 0x1290]
push eax
call fcn.00402030
mov dword [ebp - 0x1288], eax
mov ecx, dword [ebp - 0x1288]
mov dword [ebp - 0x114c], ecx
cmp dword [ebp - 0x114c], 0
jne 0x40e9b2
mov dword [ebp - 0x1278], 0x8007000e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1158]
call fcn.00409050
mov eax, dword [ebp - 0x1278]
jmp 0x40ebc4
lea edx, [ebp - 0x115c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x114c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x115c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ebf0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1158]
call fcn.00409050
jmp 0x40eb8a
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1164], eax
mov ecx, dword [ebp - 0x1164]
and ecx, 1
je 0x40ea1f
mov eax, 0x80004005
jmp 0x40ebc4
mov eax, dword [ebp - 0x1164]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1160], eax
lea ecx, [ebp - 0x1270]
call fcn.00409980
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1160]
push edx
lea ecx, [ebp - 0x1270]
call fcn.0040fa00
jmp 0x40ea60
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1270]
call fcn.00408500
test eax, eax
jne 0x40ea9d
mov dword [ebp - 0x127c], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
call fcn.0040f9e0
mov eax, dword [ebp - 0x127c]
jmp 0x40ebc4
mov eax, dword [ebp - 0x1160]
push eax
push 0
lea ecx, [ebp - 0x1270]
call fcn.00408500
push eax
call fcn.00410f60
add esp, 0xc
mov dword [ebp - 0x1274], 0
jmp 0x40ead5
mov ecx, dword [ebp - 0x1274]
add ecx, 1
mov dword [ebp - 0x1274], ecx
mov edx, dword [ebp - 0x1274]
cmp edx, dword [ebp - 0x1164]
jge 0x40eb4b
mov eax, dword [ebp - 0x1274]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x1270]
call fcn.00408500
add eax, esi
mov dword [ebp - 0x1294], eax
mov eax, dword [ebp - 0x1274]
and eax, 1
mov esi, 1
sub esi, eax
shl esi, 2
mov ecx, dword [ebp - 0x1274]
mov dl, byte [ebp + ecx - 0x1028]
push edx
call fcn.0040ed80
add esp, 4
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x1294]
movzx edx, byte [ecx]
or edx, eax
mov eax, dword [ebp - 0x1294]
mov byte [eax], dl
jmp 0x40eac6
mov ecx, dword [ebp - 0x1160]
push ecx
lea ecx, [ebp - 0x1270]
call fcn.00408500
push eax
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408500
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
call fcn.0040f9e0
cmp dword [ebp - 0x18], 0
je 0x40eba5
mov dword [ebp - 0x14], 0x204
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040e2b0
add esp, 4
jmp 0x40ebc4
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x1280]
call fcn.0040d2c0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x40ebc2
mov eax, dword [ebp - 0x20]
jmp 0x40ebc4
xor eax, eax
lea esp, [ebp - 0x12a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x24]
call fcn.00410ceb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc