Function at 0x40aee0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46079b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x48268c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48268c]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
push 0x100
lea eax, [esp + 0x2c]
push 0
push eax
mov esi, ecx
call fcn.004489f0
add esp, 0xc
cmp dword [esi + 0x904], 0
je 0x40b0ea
cmp dword [esi + 0x9ec], 3
jge 0x40af54
cmp dword [esi + 0x920], 0
je 0x40b0ea
mov eax, dword [esi + 0x90c]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebp
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
je 0x40af8b
mov eax, dword [esi + 0x90c]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push reloc.dcpi.dll_Ordinal_2
call edi
mov ebx, eax
jmp 0x40af90
mov ebx, 0x270f
mov eax, dword [esi + 0x910]
push eax
call ebp
test eax, eax
je 0x40afb9
mov eax, dword [esi + 0x910]
lea edx, [esp + 0x20]
push edx
push 0x20019
push 0
push eax
push reloc.dcpi.dll_Ordinal_2
call edi
jmp 0x40afbe
mov eax, 0x270f
test eax, eax
mov dword [esp + 0x18], 0x100
jne 0x40b017
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.Directory_Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x28]
add esi, 0x914
push ecx
mov ecx, esi
call fcn.00402310
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
test ebx, ebx
jne 0x40b05c
mov eax, dword [esp + 0x14]
push eax
call edi
jmp 0x40b05c
test ebx, ebx
jne 0x40b0ea
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.Directory_Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x28]
add esi, 0x914
push edx
mov ecx, esi
call fcn.00402310
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041fa16
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b076
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x20]
push str._sLrecvTrap.exe
push edx
mov dword [esp + 0x140], 0
call fcn.004093c0
mov esi, dword [esp + 0x28]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_2
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or edi, 0xffffffff
cmp eax, edi
jne 0x40b114
lea eax, [esi - 0x10]
mov dword [esp + 0x134], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40b0ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004489d9
add esp, 0x124
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x134], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40b13b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40b0ec