Function at 0x408300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x112c
call fcn.00418360
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0xa000
mov dword [ebp - 4], ebx
call fcn.00418880
mov dword [ebp - 0x14], eax
push 0x1fe
lea eax, [ebp - 0x113c]
push 0x447a0c
push eax
mov dword [ebp - 0x20], 0xa000
call fcn.0041882e
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x10
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x3c]
push edx
push eax
lea ecx, [ebp - 0x113c]
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocStringLen
call edi
mov esi, eax
cmp esi, ebx
je 0x4083cd
cmp esi, 0xea
jne 0x4083a7
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
add eax, 0xa000
push eax
push edx
mov dword [ebp - 0x20], eax
call fcn.00418e95
add esp, 8
mov dword [ebp - 0x14], eax
jmp 0x408382
cmp esi, ebx
je 0x408361
push str.RegQueryValueEx_error_n
call fcn.004187a5
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov edi, dword [esi + 0x18]
add edi, esi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jge 0x408574
cmp dword [edi + 0xc], 0x1fe
jne 0x408561
mov eax, dword [edi + 8]
or edx, 0xffffffff
add eax, edi
xor ecx, ecx
cmp ecx, dword [edi + 0x20]
jge 0x408416
cmp dword [eax + 4], 0x208
jne 0x408411
mov edx, dword [eax + 0x24]
add eax, dword [eax]
inc ecx
jmp 0x408400
cmp edx, 0xffffffff
jne 0x408433
push esi
call fcn.004187e6
push str.processIdOffset_erroir_n
call fcn.004187a5
add esp, 8
jmp 0x40857d
mov esi, dword [edi + 4]
mov dword [ebp - 0x18], ebx
add esi, edi
mov dword [ebp - 0x34], esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0x28]
cmp ecx, eax
jge 0x40855e
mov eax, dword [esi + 0x10]
push ebx
push ebx
lea edx, [ebp - 0x13c]
push 0xff
add eax, esi
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [ebp + eax - 0x13c], 0
lea eax, [ebp - 0x13c]
push 0x44a580
push eax
call fcn.00420a10
add esp, 8
test eax, eax
je 0x40853e
mov cl, byte [ebp + 0xb]
lea edi, [ebp - 0x13c]
mov byte [ebp - 0x30], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x2c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ebx, ecx
push 1
push ebx
lea ecx, [ebp - 0x30]
call fcn.004098d0
test al, al
je 0x4084e4
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
mov edx, ecx
lea esi, [ebp - 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov byte [eax + ebx], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x30]
push edx
push 1
mov eax, dword [ecx + 8]
mov byte [ebp - 4], 1
push eax
call fcn.004099f0
mov eax, dword [ebp - 0x2c]
xor edi, edi
cmp eax, edi
mov byte [ebp - 4], 0
je 0x408524
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40851b
cmp al, 0xff
je 0x40851b
dec al
mov byte [ecx], al
jmp 0x408524
push ecx
call fcn.0042ab78
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov ecx, dword [eax + esi]
mov edi, dword [ebp - 0x38]
add ecx, eax
add esi, ecx
xor ebx, ebx
mov dword [ebp - 0x34], esi
inc dword [ebp - 0x18]
jmp 0x40843e
mov esi, dword [ebp - 0x14]
mov ecx, dword [edi]
mov eax, dword [ebp - 0x1c]
add edi, ecx
inc eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x1c], eax
jmp 0x4083db
push esi
call fcn.004187e6
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4