Function at 0x408100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1288
call fcn.0040d900
mov eax, dword [0x427250]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1270], ecx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
push ecx
mov ecx, dword [ebp - 0x1270]
call fcn.00406a90
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x408154
mov eax, dword [ebp - 0x10]
jmp 0x4086f9
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x1018]
push eax
call fcn.00408830
add esp, 8
test eax, eax
jne 0x408180
push 0x20f
mov ecx, dword [ebp - 0x1270]
call fcn.00406980
jmp 0x4086f9
mov ecx, dword [ebp - 0x1270]
call fcn.004069f0
lea ecx, [ebp - 0x1018]
push ecx
mov ecx, dword [ebp - 0x1270]
call fcn.00406a90
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4081ae
mov eax, dword [ebp - 0x10]
jmp 0x4086f9
movzx edx, word [ebp - 0xc]
mov dword [ebp - 0x1274], edx
cmp dword [ebp - 0x1274], 0x13
jg 0x4081e9
cmp dword [ebp - 0x1274], 0x13
je 0x4083d9
cmp dword [ebp - 0x1274], 8
je 0x4081fa
cmp dword [ebp - 0x1274], 0x11
je 0x408555
jmp 0x4086bf
cmp dword [ebp - 0x1274], 0x4008
je 0x408217
jmp 0x4086bf
push 1
lea eax, [ebp - 0x1018]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408740
mov dword [ebp - 8], eax
jmp 0x4086bf
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1124], eax
lea ecx, [ebp - 0x1120]
call fcn.004096f0
mov eax, dword [ebp - 0x1124]
push eax
lea ecx, [ebp - 0x1120]
call fcn.00409780
lea ecx, [ebp - 0x1120]
call fcn.00407e00
test eax, eax
je 0x4083c2
lea ecx, [ebp - 0x1120]
call fcn.00407e00
mov dword [ebp - 0x1128], eax
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1124], 0
mov edx, dword [ebp - 0x112c]
movsx eax, byte [edx]
test eax, eax
je 0x408384
mov ecx, dword [ebp - 0x112c]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1130], eax
mov edx, dword [ebp - 0x112c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x4082f1
mov ecx, dword [ebp - 0x1130]
movsx edx, byte [ecx]
cmp edx, 0x30
jne 0x4082f1
mov eax, dword [ebp - 0x1128]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1128]
add ecx, 1
mov dword [ebp - 0x1128], ecx
mov edx, dword [ebp - 0x1130]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x112c], eax
jmp 0x408370
mov eax, dword [ebp - 0x1128]
mov ecx, dword [ebp - 0x112c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x112c]
movzx ecx, byte [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x408352
mov edx, dword [ebp - 0x1128]
add edx, 1
mov dword [ebp - 0x1128], edx
mov eax, dword [ebp - 0x112c]
add eax, 1
mov dword [ebp - 0x112c], eax
mov ecx, dword [ebp - 0x112c]
movsx edx, byte [ecx]
test edx, edx
jne 0x408342
jmp 0x408384
mov eax, dword [ebp - 0x1128]
mov ecx, dword [ebp - 0x112c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x1128]
add eax, 1
mov dword [ebp - 0x1128], eax
mov ecx, dword [ebp - 0x112c]
add ecx, 1
mov dword [ebp - 0x112c], ecx
mov edx, dword [ebp - 0x1124]
add edx, 1
mov dword [ebp - 0x1124], edx
jmp 0x408284
mov eax, dword [ebp - 0x1128]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1128]
add ecx, 1
mov dword [ebp - 0x1128], ecx
mov edx, dword [ebp - 0x1128]
mov byte [edx], 0
lea ecx, [ebp - 0x1120]
call fcn.00407e00
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.004087a0
mov dword [ebp - 8], eax
jmp 0x4083c9
mov dword [ebp - 8], 0xe
lea ecx, [ebp - 0x1120]
call fcn.00409730
jmp 0x4086bf
call fcn.00405930
mov dword [ebp - 0x1140], eax
lea ecx, [ebp - 0x1148]
call fcn.004096f0
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x1138], ecx
cmp dword [ebp - 0x1138], 0
jne 0x408413
mov dword [ebp - 0x1278], 0
jmp 0x4084e2
mov edx, dword [ebp - 0x1138]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x1144], eax
push 2
mov eax, dword [ebp - 0x1144]
push eax
lea ecx, [ebp - 0x1144]
push ecx
call fcn.004057f0
add esp, 0xc
test eax, eax
jge 0x408454
mov dword [ebp - 0x127c], 0
jmp 0x4084d6
cmp dword [ebp - 0x1144], 0x400
jg 0x408495
mov edx, dword [ebp - 0x1144]
push edx
call fcn.00405850
add esp, 4
movzx eax, al
test eax, eax
je 0x408495
mov eax, dword [ebp - 0x1144]
call fcn.00410b10
mov dword [ebp - 0x1280], esp
mov ecx, dword [ebp - 0x1280]
mov dword [ebp - 0x1284], ecx
jmp 0x4084ad
mov edx, dword [ebp - 0x1144]
push edx
lea ecx, [ebp - 0x1148]
call fcn.00409370
mov dword [ebp - 0x1284], eax
mov eax, dword [ebp - 0x1140]
push eax
mov ecx, dword [ebp - 0x1144]
shr ecx, 1
push ecx
mov edx, dword [ebp - 0x1138]
push edx
mov eax, dword [ebp - 0x1284]
push eax
call fcn.00405940
mov dword [ebp - 0x127c], eax
mov ecx, dword [ebp - 0x127c]
mov dword [ebp - 0x1278], ecx
mov edx, dword [ebp - 0x1278]
mov dword [ebp - 0x113c], edx
cmp dword [ebp - 0x113c], 0
jne 0x408517
mov dword [ebp - 0x1268], 0x8007000e
lea ecx, [ebp - 0x1148]
call fcn.004093e0
mov eax, dword [ebp - 0x1268]
jmp 0x4086f9
lea eax, [ebp - 0x114c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x113c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x114c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408710
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1148]
call fcn.004093e0
jmp 0x4086bf
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1154], eax
mov edx, dword [ebp - 0x1154]
and edx, 1
je 0x40857d
mov eax, 0x80004005
jmp 0x4086f9
mov eax, dword [ebp - 0x1154]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1150], eax
lea ecx, [ebp - 0x1260]
call fcn.004096f0
mov eax, dword [ebp - 0x1150]
push eax
lea ecx, [ebp - 0x1260]
call fcn.00409780
lea ecx, [ebp - 0x1260]
call fcn.00407e00
test eax, eax
jne 0x4085da
mov dword [ebp - 0x126c], 0x80004005
lea ecx, [ebp - 0x1260]
call fcn.00409730
mov eax, dword [ebp - 0x126c]
jmp 0x4086f9
mov ecx, dword [ebp - 0x1150]
push ecx
push 0
lea ecx, [ebp - 0x1260]
call fcn.00407e00
push eax
call fcn.0040d600
add esp, 0xc
mov dword [ebp - 0x1264], 0
jmp 0x408612
mov edx, dword [ebp - 0x1264]
add edx, 1
mov dword [ebp - 0x1264], edx
mov eax, dword [ebp - 0x1264]
cmp eax, dword [ebp - 0x1154]
jge 0x408687
lea ecx, [ebp - 0x1260]
call fcn.00407e00
mov ecx, eax
mov eax, dword [ebp - 0x1264]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [ebp - 0x1288], ecx
mov edx, dword [ebp - 0x1264]
movzx eax, byte [ebp + edx - 0x1018]
push eax
call fcn.00408900
add esp, 4
movzx edx, al
mov eax, dword [ebp - 0x1264]
and eax, 1
mov ecx, 1
sub ecx, eax
shl ecx, 2
shl edx, cl
mov ecx, dword [ebp - 0x1288]
movzx eax, byte [ecx]
or eax, edx
mov ecx, dword [ebp - 0x1288]
mov byte [ecx], al
jmp 0x408603
mov edx, dword [ebp - 0x1150]
push edx
lea ecx, [ebp - 0x1260]
call fcn.00407e00
push eax
push 3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407e00
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1260]
call fcn.00409730
cmp dword [ebp - 8], 0
je 0x4086da
mov dword [ebp - 4], 0x204
mov ecx, dword [ebp - 8]
push ecx
call fcn.00407d90
add esp, 4
jmp 0x4086f9
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x1270]
call fcn.00406a90
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4086f7
mov eax, dword [ebp - 0x10]
jmp 0x4086f9
xor eax, eax
lea esp, [ebp - 0x1288]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d67a
mov esp, ebp
pop ebp
ret 0xc