Function at 0x404238
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401d84
xor eax, eax
push ebp
push 0x40449d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00401a1c
lea eax, [ebp - 8]
call fcn.00401a1c
lea eax, [ebp - 0xc]
call fcn.00401a1c
lea eax, [ebp - 0x10]
call fcn.00401a1c
mov edx, dword [ebp - 4]
mov eax, 0x4044b4
call fcn.00401e78
mov ebx, eax
test ebx, ebx
jle 0x404475
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00401df0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call fcn.00401e30
mov edx, dword [ebp - 4]
mov eax, 0x4044c0
call fcn.00401e78
mov ebx, eax
test ebx, ebx
jle 0x4042ff
lea eax, [ebp - 0x10]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00401df0
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00401e30
mov eax, dword [ebp - 4]
call fcn.00401b9c
mov ebx, eax
jmp 0x40430c
dec ebx
test ebx, ebx
jle 0x40431a
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
jne 0x40430b
test ebx, ebx
jle 0x40434d
mov eax, dword [ebp - 4]
call fcn.00401b9c
cmp ebx, eax
jge 0x40434d
lea eax, [ebp - 0xc]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00401df0
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00401e30
mov eax, 0x4044cc
mov dword [ebp - 0x34], eax
mov eax, 0x4044e8
mov dword [ebp - 0x30], eax
mov eax, 0x4044f8
mov dword [ebp - 0x2c], eax
mov eax, 0x404514
mov dword [ebp - 0x28], eax
mov eax, 0x404524
mov dword [ebp - 0x24], eax
mov eax, 0x404538
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x34]
mov ecx, 5
mov eax, dword [ebp - 8]
call fcn.0040419c
sub eax, 2
jb 0x40439e
sub eax, 2
jb 0x4043a5
sub eax, 2
jb 0x4043ac
jmp 0x4043b3
mov esi, 0x80000001
jmp 0x4043b5
mov esi, 0x80000002
jmp 0x4043b5
mov esi, 0x80000003
jmp 0x4043b5
xor esi, esi
test esi, esi
je 0x404475
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00401d94
push eax
push esi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x404475
lea eax, [ebp - 0x14]
mov edx, 0x208
call fcn.00401ec0
mov eax, dword [ebp - 0x14]
call fcn.00401b9c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00401d94
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00401d94
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40446f
mov edx, dword [ebp - 0x18]
dec edx
lea eax, [ebp - 0x14]
call fcn.00401ec0
mov edx, dword [ebp - 0x14]
mov eax, 0x404544
call fcn.00401e78
mov ebx, eax
test ebx, ebx
jle 0x404445
lea eax, [ebp - 0x14]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00401e30
mov eax, dword [ebp - 0x14]
call fcn.00401d94
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00401b48
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00403e78
mov edx, dword [ebp - 0x38]
mov eax, edi
mov ecx, dword [ebp - 0x10]
call fcn.00401be8
push esi
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044a4
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00401a40
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00401a40
ret