Function at 0x40ae40
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x520e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push ebp
push esi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x84c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x860]
mov ebp, dword [esp + 0x85c]
xor esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov eax, 0x566d2c
mov dword [esp + 0x20], ecx
mov ebx, edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x40aeb1
sub eax, ecx
sar eax, 1
push eax
push 0x566d2c
lea ecx, [esp + 0x34]
call fcn.00402110
lea edx, [esp + 0x10]
push edx
push 0x20119
mov dword [esp + 0x85c], esi
push esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call ebx
test eax, eax
je 0x40af3d
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x34]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push eax
mov ecx, edi
mov word [edi + 4], si
call fcn.00401e80
cmp dword [esp + 0x44], 8
jb 0x40b0e2
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00418473
add esp, 4
jmp 0x40b0e2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x20119
push esi
push str.SoftWare
push eax
call ebx
test eax, eax
je 0x40af9d
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x34]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push edx
mov ecx, edi
mov word [edi + 4], si
call fcn.00401e80
cmp dword [esp + 0x44], 8
jb 0x40b0e2
mov eax, dword [esp + 0x30]
push eax
call fcn.00418473
add esp, 4
jmp 0x40b0e2
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20119
push esi
push ebp
push edx
call ebx
test eax, eax
je 0x40b002
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebx
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x34]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push edx
mov ecx, edi
mov word [edi + 4], si
call fcn.00401e80
cmp dword [esp + 0x44], 8
jb 0x40b0e2
mov eax, dword [esp + 0x30]
push eax
call fcn.00418473
add esp, 4
jmp 0x40b0e2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push esi
push edx
push eax
call ebx
test eax, eax
je 0x40b049
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00401e20
jmp 0x40b0d9
push 0x7fe
lea edx, [esp + 0x4e]
push esi
push edx
mov word [esp + 0x54], si
call fcn.00437ec0
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push esi
push esi
push edx
push eax
mov dword [esp + 0x3c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40b0b0
sub eax, edx
sar eax, 1
mov ecx, edi
jne 0x40b0cf
lea edx, [esp + 0x2c]
push edx
call fcn.00401e20
jmp 0x40b0d9
lea eax, [esp + 0x48]
push eax
call fcn.00401de0
lea ecx, [esp + 0x2c]
call fcn.00401e50
mov eax, edi
mov ecx, dword [esp + 0x84c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.004338df
add esp, 0x848
ret