Function at 0x408c74
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x425ce0
push 0xffffffffffffffff
push 0x778332
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x47c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x494]
mov esi, dword [esp + 0x48c]
mov edi, dword [esp + 0x490]
xor ebx, ebx
push ebx
push 0x7ab8db
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], ebx
call fcn.00405920
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
push 9
push 0x7ade10
lea ecx, [esp + 0x64]
mov dword [esp + 0x48c], ebx
call fcn.00405920
push 0x12
push 0x7ade1c
lea ecx, [esp + 0x64]
call fcn.004021c6
mov eax, dword [esp + 0x60]
mov ebp, 0x10
cmp dword [esp + 0x74], ebp
jae 0x425d8f
lea eax, [esp + 0x60]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x425e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x44]
push edx
call fcn.004083af
add esp, 8
mov edi, eax
push 0x1e
push str.Failed_to_open_key_with_error
lea ecx, [esp + 0x28]
mov byte [esp + 0x48c], 1
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00405920
push edi
lea eax, [esp + 0x24]
push eax
push esi
mov byte [esp + 0x490], 2
call fcn.00402fd1
add esp, 0xc
cmp dword [esp + 0x38], ebp
jb 0x425e16
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00564155
add esp, 4
mov edi, 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x58], ebp
jb 0x425e3a
mov edx, dword [esp + 0x44]
push edx
call fcn.00564155
add esp, 4
cmp dword [esp + 0x74], ebp
mov dword [esp + 0x58], edi
jmp 0x425f78
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x3ff
cmp dword [edi + 0x18], ebp
jb 0x425e5d
mov edi, dword [edi + 4]
jmp 0x425e60
add edi, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1c]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
jne 0x425ee9
cmp dword [esp + 0x14], ebx
jbe 0x425eba
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x425ea2
mov ecx, dword [esp + 0x3c]
sub eax, edx
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00405920
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x7ab902
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405920
cmp dword [esp + 0x74], 0x10
jb 0x425f8f
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x425f87
lea edx, [esp + 0x40]
push edi
push edx
call fcn.004083af
add esp, 8
mov edi, eax
push 0x26
mov ebp, 0xf
push str.Failed_to_open_query_value_with_error
lea ecx, [esp + 0x28]
mov byte [esp + 0x48c], 3
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00405920
push edi
lea eax, [esp + 0x24]
push eax
push esi
mov byte [esp + 0x490], 4
call fcn.00402fd1
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x38], edi
jb 0x425f51
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00564155
add esp, 4
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x58], edi
jb 0x425f70
mov edx, dword [esp + 0x44]
push edx
call fcn.00564155
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x58], ebp
mov byte [esp + 0x44], bl
mov dword [esp + 0x54], ebx
jb 0x425f8f
mov eax, dword [esp + 0x60]
push eax
call fcn.00564155
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.00564b24
add esp, 0x474
ret 0xc