Function at 0x40ddc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43407b
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x560]
mov dword fs:[0], eax
push 9
push str.softwaremicrosoftwindows_ntcurrentversionperflib
lea eax, [esp + 0x164]
push str._s_03x
push eax
mov dword [esp + 0x34], ecx
call fcn.0040d260
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x168]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e187
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push str.Counters
push edx
call ebx
test eax, eax
jne 0x40e17c
mov eax, dword [esp + 0x14]
push eax
call fcn.0041beca
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40e17c
mov ecx, dword [esp + 0x14]
push ecx
push 0
push ebp
call fcn.0041a540
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x30]
push eax
push 0
push str.Counters
push ecx
call ebx
test eax, eax
jne 0x40e16f
cmp byte [ebp], al
mov esi, ebp
je 0x40df99
jmp 0x40ded0
push str.process
push esi
call fcn.0041de46
add esp, 8
test eax, eax
jne 0x40df25
movsx edx, byte [esi - 2]
lea edi, [esi - 2]
push edx
call fcn.0041df1e
add esp, 4
test eax, eax
je 0x40df0a
movsx eax, byte [edi - 1]
sub edi, 1
push eax
call fcn.0041df1e
add esp, 4
test eax, eax
jne 0x40def6
add edi, 1
push edi
lea ecx, [esp + 0x160]
push 0x400
push ecx
call fcn.0041b0d5
add esp, 0xc
jmp 0x40df74
push str.id_process
push esi
call fcn.0041be2b
add esp, 8
test eax, eax
jne 0x40df74
movsx edx, byte [esi - 2]
lea edi, [esi - 2]
push edx
call fcn.0041b6a9
add esp, 4
test eax, eax
je 0x40df64
jmp 0x40df50
movsx eax, byte [edi - 1]
sub edi, 1
push eax
call fcn.0041b6a9
add esp, 4
test eax, eax
jne 0x40df50
add edi, 1
push edi
call fcn.0041a1c7
add esp, 4
mov dword [esp + 0x18], eax
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40df80
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x40ded0
push ebp
call fcn.0041b986
push 0xc800
mov dword [esp + 0x1c], 0xc800
call fcn.0041beca
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40e17c
mov ecx, dword [esp + 0x14]
push ecx
push 0
push ebp
call fcn.0041a540
add esp, 0xc
mov edi, edi
lea edx, [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x16c]
push ecx
push reloc.WS2_32.dll_connect
call ebx
test eax, eax
je 0x40e023
cmp eax, 0xea
jne 0x40e16f
mov eax, dword [esp + 0x14]
add eax, 0x6400
push eax
push ebp
mov dword [esp + 0x1c], eax
call fcn.0041d80c
mov edx, dword [esp + 0x1c]
push edx
mov ebp, eax
push 0
push ebp
call fcn.0041a540
add esp, 0x14
jmp 0x40dfd0
cmp dword [esp + 0x14], 0
jbe 0x40e16f
cmp word [ebp], 0x50
jne 0x40e16f
cmp word [ebp + 2], 0x45
jne 0x40e16f
cmp word [ebp + 4], 0x52
jne 0x40e16f
cmp word [ebp + 6], 0x46
jne 0x40e16f
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + ebp + 8]
mov esi, dword [eax + ebp + 0x20]
add eax, ebp
add ecx, eax
xor edx, edx
test esi, esi
jbe 0x40e08c
nop
mov edi, dword [esp + 0x18]
cmp dword [ecx + 4], edi
je 0x40e085
add edx, 1
add ecx, 0x28
cmp edx, esi
jb 0x40e070
jmp 0x40e08c
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x28]
cmp ecx, 0x100
jbe 0x40e09c
mov ecx, 0x100
mov esi, dword [eax + 4]
add esi, eax
test ecx, ecx
jbe 0x40e16f
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x10]
push 0
push 0
push 0x104
lea edx, [esp + 0x64]
push edx
push 0xffffffffffffffff
add eax, esi
push eax
push 0
push 0
call ebx
test eax, eax
je 0x40e160
mov edi, dword [esi]
mov eax, dword [esp + 0x20]
add edi, esi
mov esi, dword [edi + eax]
push esi
lea ecx, [esp + 0x3c]
push str._8.8x
push ecx
call fcn.004067e0
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 0x38]
push edx
add ecx, 0x14
call fcn.0040d870
push esi
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0040dbd0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x568], 0
call fcn.0040c120
test eax, eax
jne 0x40e13a
lea ecx, [esp + 0x58]
push ecx
jmp 0x40e144
lea ecx, [esp + 0x2c]
call fcn.00419120
push eax
lea ecx, [esi + 4]
call fcn.0040d870
lea ecx, [esp + 0x2c]
mov dword [esp + 0x568], 0xffffffff
call fcn.0040c0f0
mov esi, dword [edi]
add esi, edi
sub dword [esp + 0x18], 1
jne 0x40e0b7
test ebp, ebp
je 0x40e17c
push ebp
call fcn.0041b986
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x558
ret
push 0xffffffffffffffff
push 0x4340bb
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
push str.kernel32.dll
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x40e217
xor eax, eax
jmp 0x40e32f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x40e210
push str.Process32First
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x40e210
push str.Process32Next
push esi
call edi
mov edi, eax
test edi, edi
je 0x40e210
push 0
push 2
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40e210
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x2c], 0x128
call ebx
test eax, eax
je 0x40e323
mov ebx, dword [esp + 0x14]
lea ebp, [ebx + 0x14]
mov ecx, ebx
call fcn.0040dbb0
test eax, eax
je 0x40e2dd
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.0040dbd0
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], 0
call fcn.0040c120
test eax, eax
jg 0x40e2b5
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c3c0
lea ecx, [esp + 0x18]
call fcn.00419120
push eax
lea ecx, [ebx + 4]
call fcn.0040d870
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], 0xffffffff
call fcn.0040c0f0
jmp 0x40e2ea
lea ecx, [esp + 0x48]
push ecx
lea ecx, [ebx + 4]
call fcn.0040d870
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x150]
push str._8.8x
push eax
call fcn.004067e0
add esp, 0xc
lea ecx, [esp + 0x14c]
push ecx
mov ecx, ebp
call fcn.0040d870
lea edx, [esp + 0x24]
push edx
push esi
call edi
test eax, eax
jne 0x40e273
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x168
ret
push esi
mov esi, ecx
call fcn.0040db60
mov ecx, esi
call fcn.0040dba0
test eax, eax
mov ecx, esi
pop esi
je 0x40e39b
jmp 0x40ddc0
jmp 0x40e1c0