Function at 0x403d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636fc1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1138
call fcn.00607930
mov eax, dword [0x6bc858]
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 esi, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1148], edi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1138], ecx
mov dword [ebp - 0x1124], 0
call fcn.00403bc0
test eax, eax
js 0x404241
lea edx, [ebp - 0x1124]
push edx
lea ebx, [ebp - 0x1018]
call fcn.004039b0
add esp, 4
test eax, eax
jne 0x403dea
mov ecx, dword [0x6c2424]
mov eax, ebx
push eax
push str._s_Type_not_supported_n
push 0
push ecx
lea edx, [ebp - 0x113c]
push edx
mov dword [ebp - 0x113c], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x1138], 0x3c8
call fcn.004017b0
add esp, 0x14
mov eax, 0x80020009
jmp 0x404241
mov ecx, edi
call fcn.00403b60
lea eax, [ebp - 0x1018]
call fcn.00403bc0
xor ebx, ebx
cmp eax, ebx
jl 0x404241
movzx eax, word [ebp - 0x1124]
cmp eax, 0x13
jg 0x4040f5
je 0x403fe1
cmp eax, 8
je 0x403f80
cmp eax, 0x11
jne 0x40422c
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x1128], ebx
test bl, 1
je 0x403e83
mov ecx, dword [0x6c2424]
push str.Binary_Data_does_not_fall_on_BYTE_boundries_n
push 0
push ecx
lea edx, [ebp - 0x113c]
push edx
mov dword [ebp - 0x113c], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x1138], 0x420
call fcn.004017b0
add esp, 0x10
mov eax, 0x80004005
jmp 0x404241
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1120], 0
mov dword [ebp - 4], 4
push edi
lea ecx, [ebp - 0x1120]
mov byte [ebp - 4], 5
call fcn.0040c680
jmp 0x403ec5
mov eax, dword [ebp - 0x1120]
test eax, eax
jne 0x403eee
lea eax, [ebp - 0x111c]
test eax, eax
je 0x403ee4
lea ecx, [ebp - 0x1120]
call fcn.0040d170
mov eax, 0x80004005
jmp 0x404241
push edi
push 0
push eax
call fcn.005ff630
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x403f3a
movzx ecx, byte [ebp + esi - 0x1018]
mov edi, esi
shr edi, 1
add edi, dword [ebp - 0x1120]
push ecx
call fcn.00403a60
mov edx, esi
and edx, 1
add edx, edx
add edx, edx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
add esp, 4
or byte [edi], al
cmp esi, ebx
jl 0x403f00
mov edi, dword [ebp - 0x1124]
mov ecx, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x1134]
mov eax, dword [ebp - 0x1130]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x404215
lea ecx, [ebp - 0x1120]
call fcn.0040d170
jmp 0x404215
mov edi, dword [ebp - 0x1130]
push esi
lea esi, [ebp - 0x1018]
call fcn.004025b0
mov esi, eax
mov eax, dword [ebp - 0x1134]
test eax, eax
jne 0x403fa3
mov eax, str.default
mov edx, dword [0x6c2424]
push eax
lea ecx, [ebp - 0x1018]
push ecx
push str.Setting_Value__s_at__s_n
push 2
push edx
lea eax, [ebp - 0x112c]
push eax
mov dword [ebp - 0x112c], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x1128], 0x3d6
call fcn.004017b0
add esp, 0x18
jmp 0x404215
mov dword [ebp - 0x1124], ebx
lea ecx, [ebp - 0x1018]
push ecx
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x1140]
inc eax
push edx
mov dword [ebp - 0x1140], eax
call fcn.004014e0
add esp, 4
test eax, eax
js 0x404061
mov ebx, dword [ebp - 0x1140]
cmp ebx, 0x400
jg 0x40403e
push ebx
call fcn.00401540
add esp, 4
test al, al
je 0x40403e
mov eax, ebx
call fcn.00630a80
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40404b
mov eax, ebx
lea esi, [ebp - 0x1124]
call fcn.0040c350
push 3
shr ebx, 1
push ebx
lea esi, [ebp - 0x1018]
mov edi, eax
call fcn.00401630
test eax, eax
jne 0x404076
lea ecx, [ebp - 0x1124]
call fcn.0040c380
mov eax, 0x8007000e
jmp 0x404241
lea ecx, [ebp - 0x1128]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x1128]
mov edi, dword [ebp - 0x1134]
mov esi, dword [ebp - 0x1130]
push edx
push edi
call fcn.00402560
mov esi, eax
test edi, edi
jne 0x4040ac
mov edi, str.default
mov eax, dword [ebp - 0x1128]
mov ecx, dword [0x6c2424]
push edi
push eax
push str.Setting_Value__d_at__s_n
push 2
push ecx
lea edx, [ebp - 0x1144]
push edx
mov dword [ebp - 0x1144], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x1140], 0x418
call fcn.004017b0
add esp, 0x18
lea ecx, [ebp - 0x1124]
call fcn.0040c380
jmp 0x404215
cmp eax, 0x4008
jne 0x40422c
cmp esi, ebx
jne 0x404109
mov esi, str.default
mov ecx, dword [0x6c2424]
push esi
lea eax, [ebp - 0x1018]
push eax
push str.Setting_Value__s_at__s_n
push 2
push ecx
lea edx, [ebp - 0x112c]
push edx
mov dword [ebp - 0x112c], str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_statreg.h
mov dword [ebp - 0x1128], 0x3db
call fcn.004017b0
add esp, 0x18
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1120], ebx
mov dword [ebp - 4], ebx
lea edi, [eax + 2]
lea esi, [ebp - 0x1120]
mov byte [ebp - 4], 1
call fcn.0040c610
mov edi, dword [ebp - 0x1120]
test edi, edi
je 0x4041fb
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x4041d2
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
lea ecx, [ecx]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4041b0
cmp byte [eax], 0x30
jne 0x4041b0
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4041cd
mov byte [edi], cl
movzx ecx, byte [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4041cb
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x4041d2
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x404190
mov eax, dword [ebp - 0x1134]
mov ecx, dword [ebp - 0x1130]
mov word [edi], 0
mov edx, dword [ebp - 0x1120]
push edx
push eax
push ecx
call fcn.00402630
mov edi, dword [ebp - 0x1120]
mov esi, eax
jmp 0x404200
mov esi, 0xe
lea edx, [ebp - 0x111c]
cmp edi, edx
je 0x404215
lea eax, [ebp - 0x1120]
call fcn.0040d160
test esi, esi
je 0x404224
push esi
call fcn.00401480
add esp, 4
jmp 0x404241
mov edi, dword [ebp - 0x1148]
xor ebx, ebx
mov eax, dword [ebp - 0x1138]
call fcn.00403bc0
xor ecx, ecx
cmp eax, ebx
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x1158]
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.005f0da0
mov esp, ebp
pop ebp
ret 8