Function at 0x4026f7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f826
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.0043eba0
mov eax, dword [0x46d978]
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 - 0x2120], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2130], eax
lea eax, [ebp - 0x2014]
xor ebx, ebx
push eax
mov dword [ebp - 0x2124], ecx
mov dword [ebp - 0x212c], edi
mov dword [ebp - 0x2128], esi
mov dword [ebp - 0x211c], ebx
call fcn.004025a7
test eax, eax
js 0x402acd
lea edx, [ebp - 0x211c]
lea ecx, [ebp - 0x2014]
call fcn.004024bc
test eax, eax
jne 0x40278f
mov eax, 0x80020009
jmp 0x402acd
mov ecx, dword [ebp - 0x2120]
call fcn.0040257e
mov ecx, dword [ebp - 0x2120]
lea eax, [ebp - 0x2014]
push eax
call fcn.004025a7
test eax, eax
js 0x402acd
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x402a94
sub eax, 9
je 0x40291b
dec eax
dec eax
je 0x4028df
sub eax, 0x3ff5
jne 0x402ab3
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4027e9
sub ecx, edx
sar ecx, 1
add ecx, 2
mov dword [ebp - 0x2118], ebx
push 2
mov dword [ebp - 4], ebx
pop edx
mov byte [ebp - 4], 1
call fcn.0040584a
cmp eax, 0x100
jbe 0x402825
push eax
lea ecx, [ebp - 0x2118]
call fcn.0040529b
jmp 0x402847
lea esi, [ebp - 0x2114]
mov dword [ebp - 0x2118], esi
jmp 0x40284d
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x4028be
cmp word [ebp - 0x2014], 0
lea edi, [ebp - 0x2014]
je 0x402899
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x40288b
push 0x30
pop edx
cmp word [eax], dx
jne 0x40288b
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x402894
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], bx
jne 0x402861
mov ecx, dword [ebp - 0x212c]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2118]
push dword [ebp - 0x2128]
call fcn.00401e53
mov esi, dword [ebp - 0x2118]
mov edi, eax
jmp 0x4028c1
push 0xe
pop edi
lea eax, [ebp - 0x2114]
cmp esi, eax
je 0x402aa6
lea ecx, [ebp - 0x2118]
call fcn.00404e85
jmp 0x402aa6
lea eax, [ebp - 0x2124]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x2124]
push 4
mov dword [ebp - 0x211c], eax
lea eax, [ebp - 0x211c]
push eax
push 4
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x402aa4
lea ebx, [ebp - 0x2014]
xor ecx, ecx
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, cx
jne 0x402926
sub ebx, edx
sar ebx, 1
mov dword [ebp - 0x2134], ebx
test bl, 1
je 0x40294a
mov eax, 0x80004005
jmp 0x402acd
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x211c], esi
mov dword [ebp - 0x2118], ecx
xor edx, edx
mov dword [ebp - 4], 3
inc edx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040584a
cmp eax, 0x100
jbe 0x402989
push eax
lea ecx, [ebp - 0x2118]
call fcn.0040529b
jmp 0x4029bb
lea ecx, [ebp - 0x2114]
mov dword [ebp - 0x2118], ecx
jmp 0x4029c1
mov ecx, dword [ebp - 0x2118]
xor eax, eax
test ecx, ecx
jne 0x4029e5
lea eax, [ebp - 0x2114]
test eax, eax
je 0x402940
lea ecx, [ebp - 0x2118]
call fcn.00404e85
jmp 0x402940
push esi
push eax
push ecx
call fcn.00435650
add esp, 0xc
test ebx, ebx
jle 0x402a5e
xor edi, edi
mov eax, edi
cdq
sub eax, edx
movzx edx, word [ebp + edi*2 - 0x2014]
mov esi, eax
sar esi, 1
add esi, dword [ebp - 0x2118]
mov eax, edx
cmp eax, 0x30
jl 0x402a3a
cmp eax, 0x39
jle 0x402a35
cmp eax, 0x40
jle 0x402a3a
cmp eax, 0x46
jle 0x402a30
add eax, 0xffffff9f
cmp eax, 5
ja 0x402a3a
sub dl, 0x57
jmp 0x402a3c
sub dl, 0x37
jmp 0x402a3c
sub dl, 0x30
jmp 0x402a3c
xor dl, dl
mov eax, edi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
shl dl, cl
or byte [esi], dl
inc edi
cmp edi, ebx
jl 0x4029f6
mov esi, dword [ebp - 0x211c]
mov edi, dword [ebp - 0x212c]
push esi
push dword [ebp - 0x2118]
push 3
push 0
push dword [ebp - 0x2128]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x402aa6
lea ecx, [ebp - 0x2118]
call fcn.00404e85
jmp 0x402aa6
push ecx
lea eax, [ebp - 0x2014]
push eax
push esi
mov ecx, edi
call fcn.00401e0b
mov edi, eax
test edi, edi
je 0x402ab3
mov ecx, edi
call fcn.00401a09
jmp 0x402acd
push dword [ebp - 0x2130]
mov ecx, dword [ebp - 0x2120]
call fcn.004025a7
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
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.0042d3d2
leave
ret 0xc