Function at 0x4038c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4196b8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.0040b2c0
mov eax, dword [0x42a1c0]
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 dword [ebp - 0x112c], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1120], ecx
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x1124], esi
mov dword [ebp - 0x111c], ebx
call fcn.0040448b
test eax, eax
js 0x403d0d
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.00405fdd
pop ecx
pop ecx
test eax, eax
jne 0x40395d
mov eax, 0x80020009
jmp 0x403d0d
mov ecx, dword [ebp - 0x112c]
call fcn.00405871
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1014]
push eax
call fcn.0040448b
test eax, eax
js 0x403d0d
movzx eax, word [ebp - 0x111c]
sub eax, 8
je 0x403cd3
sub eax, 9
je 0x403b9d
dec eax
dec eax
je 0x403a8f
sub eax, 0x3ff5
jne 0x403cf3
lea eax, [ebp - 0x1014]
push eax
call fcn.0040aeb0
pop ecx
add eax, 2
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1118]
push eax
mov byte [ebp - 4], 1
call fcn.00403d5e
jmp 0x4039ed
mov esi, dword [ebp - 0x1118]
test esi, esi
je 0x403a6e
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x403a48
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x403a27
cmp byte [eax], 0x30
jne 0x403a27
mov byte [esi], bl
inc esi
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x403a43
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x403a41
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x403a48
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x403a06
mov ecx, dword [ebp - 0x1128]
mov word [esi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x1124]
call fcn.0040578f
mov esi, dword [ebp - 0x1118]
mov edi, eax
jmp 0x403a71
push 0xe
pop edi
lea eax, [ebp - 0x1114]
cmp esi, eax
je 0x403ce6
lea ecx, [ebp - 0x1118]
call fcn.00404275
jmp 0x403ce6
mov esi, ebx
mov dword [ebp - 0x1120], esi
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 3
push eax
call fcn.0040aeb0
inc eax
push 2
push eax
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
call fcn.004033d9
add esp, 0x10
test eax, eax
js 0x403b6d
mov edi, dword [ebp - 0x111c]
cmp edi, 0x400
jg 0x403af2
push edi
call fcn.00406074
pop ecx
test al, al
je 0x403af2
mov eax, edi
call fcn.0040cb40
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x403b04
push edi
lea ecx, [ebp - 0x1120]
call fcn.00403d31
mov esi, dword [ebp - 0x1120]
push 3
shr edi, 1
lea ecx, [ebp - 0x1014]
push edi
push ecx
push eax
call fcn.00403e64
test eax, eax
je 0x403b69
lea ecx, [ebp - 0x1130]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
js 0x403b80
mov eax, dword [ebp - 0x1130]
push 4
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1134]
push eax
mov eax, dword [ebp - 0x1128]
push 4
push ebx
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x403b94
push esi
mov esi, dword [esi]
call fcn.0040b064
pop ecx
test esi, esi
jne 0x403b60
mov eax, 0x8007000e
jmp 0x403d0d
push esi
mov esi, dword [esi]
call fcn.0040b064
pop ecx
test esi, esi
jne 0x403b77
mov eax, edi
jmp 0x403d0d
push esi
mov esi, dword [esi]
call fcn.0040b064
pop ecx
test esi, esi
jne 0x403b8b
jmp 0x403ce6
lea eax, [ebp - 0x1014]
push eax
call fcn.0040aeb0
mov dword [ebp - 0x1134], eax
pop ecx
test al, 1
je 0x403bbe
mov eax, 0x80004005
jmp 0x403d0d
cdq
sub eax, edx
mov dword [ebp - 0x1118], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1130], esi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1118]
push esi
mov byte [ebp - 4], 5
call fcn.00403d5e
jmp 0x403c04
cmp dword [ebp - 0x1118], 0
jne 0x403c24
lea eax, [ebp - 0x1114]
test eax, eax
je 0x403bb4
lea ecx, [ebp - 0x1118]
call fcn.00404275
jmp 0x403bb4
push esi
push ebx
push dword [ebp - 0x1118]
call fcn.0040ac90
add esp, 0xc
mov dword [ebp - 0x111c], ebx
cmp dword [ebp - 0x1134], 0
mov ecx, ebx
jle 0x403c98
mov ebx, dword [ebp - 0x1134]
mov esi, dword [ebp - 0x1118]
mov eax, ecx
movzx ecx, byte [ebp + ecx - 0x1014]
cdq
sub eax, edx
mov edi, eax
push ecx
sar edi, 1
call fcn.00404045
mov edx, dword [ebp - 0x111c]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
mov ecx, dword [ebp - 0x111c]
or byte [edi + esi], al
inc ecx
mov dword [ebp - 0x111c], ecx
cmp ecx, ebx
jl 0x403c4b
mov esi, dword [ebp - 0x1130]
xor ebx, ebx
mov eax, dword [ebp - 0x1128]
push esi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x403ce6
lea ecx, [ebp - 0x1118]
call fcn.00404275
jmp 0x403ce6
push 1
lea eax, [ebp - 0x1014]
mov ecx, edi
push eax
push esi
call fcn.004057d7
mov edi, eax
test edi, edi
je 0x403cf3
push edi
call fcn.00403fb0
pop ecx
jmp 0x403d0d
push dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x112c]
call fcn.0040448b
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1148]
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.0040b2ad
mov esp, ebp
pop ebp
ret 0xc