Function at 0x40b600
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482636
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.0044c760
mov eax, dword [0x4ae364]
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 - 0x2124], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2120], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x211c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2134], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x2130], ecx
call fcn.0040c360
test eax, eax
js 0x40ba8c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4b2a94]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4b1d68]
cmp eax, dword [ecx + 4]
jg 0x40baaa
mov ebx, 0x4008
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
nop
push dword [esi*8 + 0x4b1d48]
lea eax, [ebp - 0x2014]
push eax
call edi
test eax, eax
je 0x40b6c4
inc esi
cmp esi, 4
jb 0x40b6a0
mov eax, 0x80020009
jmp 0x40ba8c
movzx eax, word [esi*8 + 0x4b1d4c]
mov ecx, dword [ebp - 0x2124]
mov esi, eax
mov edi, eax
call fcn.0040d5c0
mov ecx, dword [ebp - 0x2124]
lea eax, [ebp - 0x2014]
push eax
call fcn.0040c360
test eax, eax
js 0x40ba8c
cmp esi, 0x13
ja 0x40b915
je 0x40b8b4
cmp esi, 8
je 0x40b879
cmp esi, 0x11
jne 0x40ba72
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x212c], ebx
test bl, 1
jne 0x40b7b9
cdq
sub eax, edx
mov dword [ebp - 0x2118], 0
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0x2128], ecx
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp ecx, 0x100
jbe 0x40b79e
push ecx
lea ecx, [ebp - 0x2118]
call fcn.0040bbe0
mov eax, dword [ebp - 0x2118]
mov ecx, dword [ebp - 0x2128]
jmp 0x40b7aa
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
test eax, eax
jne 0x40b7c3
lea ecx, [ebp - 0x2118]
call fcn.0040c050
mov eax, 0x80004005
jmp 0x40ba8c
push ecx
push 0
push eax
call fcn.00463df0
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x40b831
nop word [eax + eax]
movzx edx, word [ebp + edi*2 - 0x2014]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x2118]
lea eax, [edx - 0x30]
cmp eax, 0x36
ja case.0x40b801.58
movzx eax, byte [eax + 0x40bb50]
jmp dword [eax*4 + 0x40bb40]
sub dl, 0x30
jmp 0x40b819
sub dl, 0x37
jmp 0x40b819
sub dl, 0x57
jmp 0x40b819
xor dl, dl
mov eax, edi
mov ecx, 4
and eax, 1
inc edi
shl eax, 2
sub ecx, eax
shl dl, cl
or byte [esi], dl
cmp edi, ebx
jl 0x40b7e0
push dword [ebp - 0x2128]
mov eax, dword [ebp - 0x2120]
push dword [ebp - 0x2118]
push 3
push 0
push dword [ebp - 0x211c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x40ba63
lea ecx, [ebp - 0x2118]
call fcn.0040c050
jmp 0x40ba63
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
mov eax, dword [ebp - 0x2120]
push 1
push 0
push dword [ebp - 0x211c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x40ba63
lea eax, [ebp - 0x212c]
mov dword [ebp - 0x2128], 0
push eax
push 0
push 0
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x212c]
push 4
mov dword [ebp - 0x2130], eax
lea eax, [ebp - 0x2130]
push eax
mov eax, dword [ebp - 0x2120]
push 4
push 0
push dword [ebp - 0x211c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x2128]
mov edi, eax
call fcn.0040ac20
jmp 0x40ba63
cmp di, bx
jne 0x40ba72
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x2118], 0
mov ecx, 2
mov dword [ebp - 4], 0
mul ecx
mov byte [ebp - 4], 1
test edx, edx
ja 0x40bb2b
jb 0x40b95d
cmp eax, 0xffffffff
ja 0x40bb2b
cmp eax, 0x100
jbe 0x40b972
push eax
lea ecx, [ebp - 0x2118]
call fcn.0040bbe0
jmp 0x40b992
lea esi, [ebp - 0x2114]
mov dword [ebp - 0x2118], esi
jmp 0x40b998
mov esi, dword [ebp - 0x2118]
mov dword [ebp - 4], 0
test esi, esi
je 0x40ba49
cmp word [ebp - 0x2014], 0
lea edi, [ebp - 0x2014]
je 0x40b9ec
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop dword [eax]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x40b9dd
cmp word [eax], 0x30
jne 0x40b9dd
xor ecx, ecx
push eax
mov word [esi], cx
call ebx
mov edi, eax
jmp 0x40b9e3
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], 0
jne 0x40b9c0
xor eax, eax
mov dword [esi], eax
mov ebx, dword [ebp - 0x2118]
mov dword [ebp - 0x212c], ebx
test ebx, ebx
je 0x40bb35
mov esi, ebx
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
nop
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x40ba10
mov ebx, dword [ebp - 0x212c]
mov eax, dword [ebp - 0x2120]
push edi
push ebx
push 7
push 0
push dword [ebp - 0x211c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2118]
mov edi, eax
jmp 0x40ba4e
mov edi, 0xe
lea eax, [ebp - 0x2114]
cmp esi, eax
je 0x40ba63
lea ecx, [ebp - 0x2118]
call fcn.0040c050
test edi, edi
je 0x40ba72
push edi
call fcn.0040bd90
add esp, 4
jmp 0x40ba8c
push dword [ebp - 0x2134]
mov ecx, dword [ebp - 0x2124]
call fcn.0040c360
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.0044c213
mov esp, ebp
pop ebp
ret 0xc
push 0x4b1d68
call fcn.0044c65e
add esp, 4
cmp dword [0x4b1d68], 0xffffffff
jne 0x40b691
mov eax, 8
mov dword [0x4b1d48], 0x48a990
mov word [0x4b1d4c], ax
mov ebx, 0x4008
mov eax, 0x13
mov dword [0x4b1d50], 0x48a994
mov word [0x4b1d5c], ax
mov eax, 0x11
push 0x4b1d68
mov word [0x4b1d54], bx
mov dword [0x4b1d58], 0x48a998
mov dword [0x4b1d60], 0x48a99c
mov word [0x4b1d64], ax
call fcn.0044c614
add esp, 4
jmp 0x40b696
push 0x80070057
call fcn.0040bdb0
push 0x80004005
call fcn.0040bdb0
nop
or byte [eax - 0x47f2ffc0], bh
inc eax
add byte [edx], dl
mov eax, 0xb8170040
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
int3