Function at 0x40fd3c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452d7d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x122c
call fcn.004149f0
mov eax, dword [0x468114]
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 - 0x1230], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x123c], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1234], ecx
mov dword [ebp - 0x122c], edi
mov dword [ebp - 0x1228], esi
mov dword [ebp - 0x1220], ebx
call fcn.004112f3
test eax, eax
js 0x4101a5
lea eax, [ebp - 0x1220]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.0041314a
pop ecx
pop ecx
test eax, eax
jne 0x40fdd8
mov eax, 0x80020009
jmp 0x4101a5
mov ecx, dword [ebp - 0x1230]
call fcn.004128db
mov ecx, dword [ebp - 0x1230]
lea eax, [ebp - 0x1014]
push eax
call fcn.004112f3
test eax, eax
js 0x4101a5
movzx eax, word [ebp - 0x1220]
sub eax, 8
je 0x41015a
sub eax, 9
je 0x410035
dec eax
sub eax, 1
je 0x40ff0b
sub eax, 0x3ff5
jne 0x41018b
lea eax, [ebp - 0x1014]
push eax
call fcn.00422d70
pop ecx
add eax, 2
mov dword [ebp - 0x121c], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x121c]
push eax
mov byte [ebp - 4], 1
call fcn.004101c7
jmp 0x40fe6a
mov esi, dword [ebp - 0x121c]
test esi, esi
je 0x40feea
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x40fec4
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x40fea3
cmp byte [eax], 0x30
jne 0x40fea3
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x40febe
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40febd
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x40fec4
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x40fe83
mov ecx, dword [ebp - 0x122c]
mov word [esi], 0
push dword [ebp - 0x121c]
push dword [ebp - 0x1228]
call fcn.0041282a
mov esi, dword [ebp - 0x121c]
mov ebx, eax
jmp 0x40feed
push 0xe
pop ebx
lea eax, [ebp - 0x1218]
cmp esi, eax
je 0x41017e
lea ecx, [ebp - 0x121c]
call fcn.004110f5
jmp 0x41017e
mov esi, ebx
mov dword [ebp - 0x1234], esi
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 3
push eax
call fcn.00422d70
inc eax
push 2
push eax
mov dword [ebp - 0x1220], eax
lea eax, [ebp - 0x1220]
push eax
call fcn.00403747
add esp, 0x10
test eax, eax
js 0x40ffa5
mov edi, dword [ebp - 0x1220]
cmp edi, 0x400
jg 0x40ff6a
push edi
call fcn.00404c42
pop ecx
test al, al
je 0x40ff6a
mov eax, edi
call fcn.004147d0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40ff7c
push edi
lea ecx, [ebp - 0x1234]
call fcn.0040393c
mov esi, dword [ebp - 0x1234]
push 3
shr edi, 1
lea ecx, [ebp - 0x1014]
push edi
push ecx
push eax
call fcn.0040133e
test eax, eax
jne 0x40ffaf
test esi, esi
je 0x40ffa5
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.00422b5d
pop ecx
test edi, edi
jne 0x40ff96
mov eax, 0x8007000e
jmp 0x4101a5
lea ecx, [ebp - 0x1238]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [ebp - 0x1224], eax
test eax, eax
jns 0x40ffeb
test esi, esi
je 0x4101a5
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.00422b5d
pop ecx
test edi, edi
jne 0x40ffd1
mov eax, dword [ebp - 0x1224]
jmp 0x4101a5
mov eax, dword [ebp - 0x1238]
push 4
mov dword [ebp - 0x1224], eax
lea eax, [ebp - 0x1224]
push eax
mov eax, dword [ebp - 0x122c]
push 4
push ebx
push dword [ebp - 0x1228]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test esi, esi
je 0x41017e
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.00422b5d
pop ecx
test edi, edi
jne 0x410021
jmp 0x41017e
lea eax, [ebp - 0x1014]
push eax
call fcn.00422d70
mov dword [ebp - 0x1238], eax
pop ecx
test al, 1
jne 0x4100a6
cdq
sub eax, edx
mov dword [ebp - 0x1118], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1224], esi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1118]
push esi
mov byte [ebp - 4], 5
call fcn.00410225
jmp 0x410092
cmp dword [ebp - 0x1118], 0
jne 0x4100b0
lea ecx, [ebp - 0x1118]
call fcn.00411107
mov eax, 0x80004005
jmp 0x4101a5
push esi
push ebx
push dword [ebp - 0x1118]
call fcn.00416020
add esp, 0xc
mov dword [ebp - 0x1220], ebx
cmp dword [ebp - 0x1238], 0
mov eax, ebx
jle 0x41011f
mov ebx, dword [ebp - 0x1238]
mov esi, dword [ebp - 0x1118]
mov edi, eax
movzx eax, byte [ebp + eax - 0x1014]
push eax
shr edi, 1
call fcn.00410eae
mov edx, dword [ebp - 0x1220]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov eax, dword [ebp - 0x1220]
inc eax
mov dword [ebp - 0x1220], eax
cmp eax, ebx
jl 0x4100d7
mov esi, dword [ebp - 0x1224]
xor ebx, ebx
mov eax, dword [ebp - 0x122c]
push esi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1228]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x41017e
lea ecx, [ebp - 0x1118]
call fcn.00411107
jmp 0x41017e
lea eax, [ebp - 0x1014]
push eax
call fcn.00422d70
pop ecx
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test ebx, ebx
je 0x41018b
push ebx
call fcn.0041052b
pop ecx
jmp 0x4101a5
push dword [ebp - 0x123c]
mov ecx, dword [ebp - 0x1230]
call fcn.004112f3
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x124c]
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.004146b1
leave
ret 0xc