Function at 0x40e930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428221
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.0041d300
mov eax, dword [0x4322d0]
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 + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1138], ecx
lea eax, [ebp - 0x1018]
mov ecx, esi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x1124], 0
call fcn.0040e810
test eax, eax
jl 0x40edae
lea edx, [ebp - 0x1124]
push edx
lea ebx, [ebp - 0x1018]
call fcn.0040e670
add esp, 4
test eax, eax
jne 0x40e9c8
mov eax, 0x80020009
jmp 0x40edae
call fcn.0040e7c0
lea eax, [ebp - 0x1018]
mov ecx, esi
call fcn.0040e810
xor esi, esi
cmp eax, esi
jl 0x40edae
movzx eax, word [ebp - 0x1124]
cmp eax, 0x13
jg 0x40ec7a
je 0x40eb7e
cmp eax, 8
je 0x40eb4e
cmp eax, 0x11
jne 0x40ed93
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x1124], ebx
test bl, 1
jne 0x40eab4
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1130], edi
mov dword [ebp - 0x1120], esi
xor eax, eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp eax, esi
ja 0x40ea53
cmp edi, 0xffffffff
jbe 0x40ea5d
push 0x80070057
call fcn.00406980
cmp edi, 0x100
jbe 0x40ea89
lea ecx, [ebp - 0x1120]
push ecx
mov eax, edi
call fcn.00410460
jmp 0x40ea95
lea edx, [ebp - 0x111c]
mov dword [ebp - 0x1120], edx
mov eax, dword [ebp - 0x1120]
test eax, eax
jne 0x40eabe
lea eax, [ebp - 0x111c]
test eax, eax
je 0x40eab4
lea eax, [ebp - 0x1120]
call fcn.00410450
mov eax, 0x80004005
jmp 0x40edae
push edi
push 0
push eax
call fcn.00418240
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x40eb08
mov edx, dword [ebp - 0x1120]
mov ecx, esi
shr ecx, 1
lea ebx, [ecx + edx]
mov cl, byte [ebp + esi - 0x1018]
call fcn.0040e720
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [ebx], al
cmp esi, dword [ebp - 0x1124]
jl 0x40ead0
mov ecx, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x112c]
mov eax, dword [ebp - 0x1128]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x40ed84
lea eax, [ebp - 0x1120]
call fcn.00410450
jmp 0x40ed84
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [edi]
inc eax
push eax
mov eax, dword [ebp - 0x112c]
lea edx, [ebp - 0x1018]
push edx
push 1
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp 0x40ed84
mov dword [ebp - 0x1128], esi
lea edx, [ebp - 0x1018]
push edx
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push esi
mov dword [ebp - 0x1124], eax
cdq
push 2
push edx
push eax
call fcn.00421670
cmp edx, esi
jg 0x40ec18
jl 0x40ebb7
cmp eax, 0x7fffffff
ja 0x40ec18
push edx
push eax
lea ecx, [ebp - 0x1124]
call fcn.0040d020
add esp, 8
cmp eax, esi
jl 0x40ec18
mov ebx, dword [ebp - 0x1124]
cmp ebx, 0x400
jg 0x40ebf4
push ebx
call fcn.0040d040
add esp, 4
test al, al
je 0x40ebf4
mov eax, ebx
call fcn.00420fa0
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x40ec03
mov eax, ebx
lea esi, [ebp - 0x1128]
call fcn.00410320
mov esi, eax
mov edx, ebx
push 3
shr edx, 1
lea eax, [ebp - 0x1018]
call fcn.0040d0f0
test eax, eax
jne 0x40ec2d
lea esi, [ebp - 0x1128]
call fcn.0040c130
mov eax, 0x8007000e
jmp 0x40edae
lea ecx, [ebp - 0x1130]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x1130]
mov ecx, dword [ebp - 0x112c]
push 4
lea eax, [ebp - 0x1124]
push eax
push 4
push 0
mov dword [ebp - 0x1124], edx
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esi, [ebp - 0x1128]
mov ebx, eax
call fcn.0040c130
jmp 0x40ed84
cmp eax, 0x4008
jne 0x40ed93
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1120], esi
xor ecx, ecx
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
cmp ecx, esi
ja 0x40ecad
cmp eax, 0xffffffff
jbe 0x40ecb7
push 0x80070057
call fcn.00406980
cmp eax, 0x100
jbe 0x40ecda
lea ecx, [ebp - 0x1120]
push ecx
call fcn.00410460
jmp 0x40ece6
lea edx, [ebp - 0x111c]
mov dword [ebp - 0x1120], edx
mov ebx, dword [ebp - 0x1120]
test ebx, ebx
je 0x40ed66
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x40ed47
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40ed1f
cmp byte [eax], 0x30
jne 0x40ed1f
mov byte [ebx], 0
push eax
inc ebx
call edi
mov esi, eax
jmp 0x40ed3c
mov byte [ebx], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40ed3a
mov al, byte [esi + 1]
inc esi
inc ebx
test al, al
je 0x40ed41
mov byte [ebx], al
inc ebx
inc esi
cmp byte [esi], 0
jne 0x40ed05
mov edi, dword [ebp - 0x1128]
mov edx, dword [ebp - 0x112c]
mov byte [ebx], 0
mov byte [ebx + 1], 0
mov ecx, dword [ebp - 0x1120]
push ecx
push edx
push edi
call fcn.0040d590
mov ebx, eax
jmp 0x40ed6b
mov ebx, 0xe
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x40ed84
lea eax, [ebp - 0x1120]
call fcn.00410450
xor esi, esi
cmp ebx, esi
je 0x40ed93
mov eax, ebx
call fcn.0040d2b0
jmp 0x40edae
mov eax, dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x1134]
call fcn.0040e810
xor ecx, ecx
cmp eax, esi
setge cl
dec ecx
and 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.00412dd0
mov esp, ebp
pop ebp
ret 8