Function at 0x40b720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push edi
mov dword [ebp - 8], 1
mov al, byte [0x411e34]
mov byte [ebp - 0x124], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x24], 0x2ee0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x124]
push ecx
push str.Process
call fcn.0040b969
add esp, 8
mov edx, dword [ebp - 0x24]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
lea edx, [ebp - 0x124]
push edx
push 0x80000004
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x40b7d9
mov eax, dword [ebp - 0x24]
add eax, 0x3e8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 4], eax
jmp 0x40b78d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x18]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x12c]
add eax, dword [edx + 8]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0
lea ecx, [ebp - 0x124]
push ecx
push str.ID_Process
call fcn.0040b969
add esp, 8
mov dword [ebp - 0x18], 0
jmp 0x40b82a
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x20]
jge 0x40b877
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ecx, dword [ebp - 0x128]
cmp dword [ecx + 4], eax
jne 0x40b861
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0xc], eax
jmp 0x40b877
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x128]
add edx, dword [ecx]
mov dword [ebp - 0x128], edx
jmp 0x40b821
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x12c]
add ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 1
jmp 0x40b8b1
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0x28]
jge 0x40b931
cmp dword [ebp - 8], 0
je 0x40b931
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x10]
push ecx
push str._ls.exe
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40b90b
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], 0
jmp 0x40b92c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x40b8a8
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40b956
push str.HeapFree_failed_in_main._n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0x80000004
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
pop edi
mov esp, ebp
pop ebp
ret