Function at 0x402ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421b66
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2138
call fcn.004100a0
mov eax, dword [0x42e1f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x2130], eax
mov dword [ebp - 0x2134], ecx
lea eax, [ebp - 0x2018]
mov ecx, esi
mov dword [ebp - 0x2144], esi
mov dword [ebp - 0x213c], edi
mov dword [ebp - 0x2124], 0
call fcn.00403940
test eax, eax
jl 0x403349
lea edx, [ebp - 0x2124]
push edx
lea ebx, [ebp - 0x2018]
call fcn.00402ac0
add esp, 4
test eax, eax
jne 0x402f9b
mov ecx, dword [0x42f12c]
mov eax, ebx
push eax
push str._s_Type_not_supported_n
push 0
push ecx
lea eax, [ebp - 0x2138]
mov dword [ebp - 0x2138], str.C:PROGRA2MICROS1.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x2134], 0x36e
call fcn.004038e0
add esp, 0x10
mov eax, 0x80020009
jmp 0x403349
call fcn.004042f0
lea eax, [ebp - 0x2018]
mov ecx, esi
call fcn.00403940
xor esi, esi
cmp eax, esi
jl 0x403349
movzx eax, word [ebp - 0x2124]
cmp eax, 0x13
jg 0x403205
je 0x403184
cmp eax, 8
je 0x403124
cmp eax, 0x11
jne 0x40332e
lea edx, [ebp - 0x2018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2124], eax
test al, 1
je 0x40302e
mov eax, dword [0x42f12c]
push str.Binary_Data_does_not_fall_on_BYTE_boundries_n
push esi
push eax
lea eax, [ebp - 0x2138]
mov dword [ebp - 0x2138], str.C:PROGRA2MICROS1.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x2134], 0x3c6
call fcn.004038e0
add esp, 0xc
mov eax, 0x80004005
jmp 0x403349
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x2128], edi
mov dword [ebp - 0x2120], esi
mov dword [ebp - 4], 3
lea esi, [ebp - 0x2120]
mov byte [ebp - 4], 4
call fcn.00402da0
jmp 0x403065
mov eax, dword [ebp - 0x2120]
test eax, eax
jne 0x40308e
lea ecx, [ebp - 0x211c]
test ecx, ecx
je 0x403084
lea eax, [ebp - 0x2120]
call fcn.00402bf0
mov eax, 0x80004005
jmp 0x403349
push edi
push 0
push eax
call fcn.0040b850
xor ebx, ebx
add esp, 0xc
cmp dword [ebp - 0x2124], ebx
jle 0x4030d8
mov si, word [ebp + ebx*2 - 0x2018]
mov edi, ebx
shr edi, 1
add edi, dword [ebp - 0x2120]
call fcn.00402e00
mov edx, ebx
and edx, 1
add edx, edx
add edx, edx
mov ecx, 4
sub ecx, edx
shl al, cl
inc ebx
or byte [edi], al
cmp ebx, dword [ebp - 0x2124]
jl 0x4030a4
mov ecx, dword [ebp - 0x2128]
mov edx, dword [ebp - 0x2120]
mov eax, dword [ebp - 0x2130]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x213c]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 0x211c]
mov ebx, eax
cmp dword [ebp - 0x2120], edx
je 0x40331f
lea eax, [ebp - 0x2120]
call fcn.00402bf0
jmp 0x40331f
push edi
mov edi, dword [ebp - 0x2130]
lea esi, [ebp - 0x2018]
call fcn.00402b70
mov ebx, eax
mov eax, dword [ebp - 0x213c]
test eax, eax
jne 0x403147
mov eax, str.default
mov ecx, dword [0x42f12c]
push eax
lea eax, [ebp - 0x2018]
push eax
push str.Setting_Value__s_at__s_n
push 2
push ecx
lea eax, [ebp - 0x212c]
mov dword [ebp - 0x212c], str.C:PROGRA2MICROS1.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x2128], 0x37c
call fcn.004038e0
add esp, 0x14
jmp 0x40331f
lea edx, [ebp - 0x2128]
push edx
push esi
push esi
lea eax, [ebp - 0x2018]
push eax
mov dword [ebp - 0x2124], esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x2128]
mov esi, dword [ebp - 0x2130]
push ecx
push edi
call fcn.00402d30
mov ebx, eax
test edi, edi
jne 0x4031be
mov edi, str.default
mov edx, dword [ebp - 0x2128]
mov eax, dword [0x42f12c]
push edi
push edx
push str.Setting_Value__d_at__s_n
push 2
push eax
lea eax, [ebp - 0x2140]
mov dword [ebp - 0x2140], str.C:PROGRA2MICROS1.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x213c], 0x3be
call fcn.004038e0
add esp, 0x14
lea esi, [ebp - 0x2124]
call fcn.00402d10
jmp 0x40331f
cmp eax, 0x4008
jne 0x40332e
cmp edi, esi
jne 0x403219
mov edi, str.default
mov edx, dword [0x42f12c]
push edi
lea ecx, [ebp - 0x2018]
push ecx
push str.Setting_Value__s_at__s_n
push 2
push edx
lea eax, [ebp - 0x212c]
mov dword [ebp - 0x212c], str.C:PROGRA2MICROS1.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x2128], 0x381
call fcn.004038e0
add esp, 0x14
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x2120], esi
mov dword [ebp - 4], esi
lea edi, [ebp - 0x2120]
mov byte [ebp - 4], 1
call fcn.00402c00
mov edi, dword [ebp - 0x2120]
test edi, edi
je 0x403305
cmp word [ebp - 0x2018], 0
lea esi, [ebp - 0x2018]
je 0x4032d6
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea ecx, [ecx]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x4032c7
cmp word [eax], 0x30
jne 0x4032c7
xor ecx, ecx
mov word [edi], cx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x4032d0
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x4032a0
xor edx, edx
mov word [edi], dx
mov edx, dword [ebp - 0x213c]
xor eax, eax
mov word [edi + 2], ax
mov ecx, dword [ebp - 0x2120]
mov eax, dword [ebp - 0x2130]
push ecx
push edx
push eax
call fcn.00402c60
mov edi, dword [ebp - 0x2120]
mov ebx, eax
jmp 0x40330a
mov ebx, 0xe
lea ecx, [ebp - 0x211c]
cmp edi, ecx
je 0x40331f
lea eax, [ebp - 0x2120]
call fcn.00402bf0
test ebx, ebx
je 0x40332c
mov eax, ebx
call fcn.004038a0
jmp 0x403349
xor esi, esi
mov eax, dword [ebp - 0x2134]
mov ecx, dword [ebp - 0x2144]
call fcn.00403940
xor edx, edx
cmp eax, esi
setge dl
dec edx
and eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407200
mov esp, ebp
pop ebp
ret 8