Function at 0x40d070
Capabilities:
Create process on windows
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49c39d
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4be0a0]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4be0a0]
xor eax, esp
push eax
lea eax, [esp + 0x2bc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2cc]
xor ebx, ebx
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.0046188e
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x2d0], ebx
call fcn.00403040
add esp, 0xc
mov byte [esp + 0x2c4], 2
cmp dword [esp + 0x8c], 0x10
jb 0x40d0f5
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0047d710
add esp, 4
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
cmp dword [esp + 0xa4], ebx
jne 0x40d12f
mov edx, dword [ebp + 4]
push 0x10
push 0x4a1488
push 0x4a2348
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40d3d7
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
push str.ruleCleaned
push 0x4a1c08
mov esi, 4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40d1a6
cmp dword [esp + 0x20], esi
jne 0x40d1a6
cmp dword [esp + 0x18], ebx
je 0x40d1a6
push str.ruleCleaned
push 0x4a1c08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, str.GlobalB9A7C12B_AB68_49ff_9A08_080F1B1E0200
call fcn.004078a0
mov ecx, dword [ebp + 4]
push 0x40
push 0x4a2104
push 0x4a239c
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40d3d0
mov edx, dword [ebp + 4]
mov eax, dword [0x4c3154]
push ebx
push edx
push eax
call fcn.0046267d
add esp, 0xc
test eax, eax
jne 0x40d1d8
cmp dword [esp + 0xa8], 8
jb 0x40d3f1
mov ecx, dword [esp + 0x94]
push ecx
jmp 0x40d3e9
and dword [esp + 0x2c], 0xfffffe00
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
sub esp, 0x18
mov byte [esp + 0x2dc], 4
mov esi, esp
mov dword [esp + 0x30], esp
push 0x4a23b8
call fcn.00469193
push str.cbe_details
lea edx, [esp + 0x40]
push edx
mov ecx, 0x4a23b7
mov byte [esp + 0x2e4], 5
call fcn.0046a0e5
mov edi, eax
mov byte [esp + 0x2dc], 4
call fcn.0046949e
mov edx, 0x4a1f28
lea eax, [esp + 0x3c]
call fcn.00402730
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0x2cc], 6
call fcn.004059b0
sub esp, 0x10
mov byte [esp + 0x2dc], 7
mov edx, eax
mov esi, esp
mov dword [esp + 0x30], esp
call fcn.00469246
push str.cbe_type
lea edx, [esp + 0x40]
push edx
mov ecx, 0x4a23c4
mov byte [esp + 0x2e4], 8
call fcn.0046a0e5
mov edi, eax
mov byte [esp + 0x2dc], 7
call fcn.0046949e
cmp dword [esp + 0x70], 0x10
jb 0x40d2ae
mov eax, dword [esp + 0x5c]
push eax
call fcn.0047d710
add esp, 4
mov edi, 8
mov byte [esp + 0x2c4], 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x54], edi
jb 0x40d2de
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0047d710
add esp, 4
push 1
push ebx
lea edx, [esp + 0x2c]
push edx
push str.t_client_basic_event
call fcn.00474d3a
lea esi, [esp + 0x3c]
call fcn.00461990
cmp dword [eax + 0x18], edi
jb 0x40d303
mov eax, dword [eax + 4]
jmp 0x40d306
add eax, 4
push 2
push 0x4a23e0
push eax
call fcn.0045d031
cmp dword [esp + 0x54], edi
jb 0x40d326
mov eax, dword [esp + 0x40]
push eax
call fcn.0047d710
add esp, 4
lea esi, [esp + 0x3c]
call fcn.00461990
cmp dword [eax + 0x18], edi
jb 0x40d339
mov eax, dword [eax + 4]
jmp 0x40d33c
add eax, 4
push eax
call fcn.0045cbd8
cmp eax, 2
jne 0x40d350
mov byte [esp + 0x17], 1
cmp edx, ebx
je 0x40d354
mov byte [esp + 0x17], bl
cmp dword [esp + 0x54], edi
jb 0x40d367
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0047d710
add esp, 4
cmp byte [esp + 0x17], bl
je 0x40d41b
mov edx, dword [ebp + 4]
push 0x40
push 0x4a23e4
push 0x4a23f0
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push str.ruleCleaned
push 0x4a1c08
mov dword [esp + 0x2c], 1
call fcn.0045ebef
add esp, 0x14
push str.ruleupt
push 0x4a1c7c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea esi, [esp + 0x24]
mov byte [esp + 0x2c4], 2
call fcn.0046941b
mov edi, ebp
call fcn.0040fd70
cmp dword [esp + 0xa8], 8
jb 0x40d3f1
mov eax, dword [esp + 0x94]
push eax
call fcn.0047d710
add esp, 4
mov ecx, dword [esp + 0x2bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.0047d444
add esp, 0x2b4
ret 4
push 0x206
lea edx, [esp + 0xb2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0xb8], cx
call fcn.0047f8f0
add esp, 0xc
push 0x104
lea eax, [esp + 0xb0]
push eax
push str.clientstat.exe
xor ecx, ecx
call fcn.0045cf79
push 1
push ebx
push str._clearRules
lea ecx, [esp + 0xb8]
push ecx
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x40d3bf
mov edx, dword [ebp + 4]
push 0x10
push 0x4a1488
push 0x4a246c
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x24]
mov byte [esp + 0x2c4], 2
call fcn.0046941b
lea esi, [esp + 0x90]
call fcn.00405980
jmp 0x40d3f1