Function at 0x4b6f80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x618707
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
mov eax, dword [0x6ec760]
mov dword [esp + 0x82c], ebx
cmp eax, ebx
jne 0x4b6fca
mov eax, 0x6ec764
mov edx, 0x6c4af4
test edx, edx
je 0x4b70b7
cmp eax, ebx
je 0x4b70b7
push ebp
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov word [esp + 0x3c], bx
call fcn.004023e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x830], 1
call fcn.00401070
push 0x6c4af4
lea ecx, [esp + 0x4c]
call fcn.00402350
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0x34]
mov byte [esp + 0x830], 2
call fcn.004023d0
push eax
call fcn.005de123
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005f6c5c
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x4b708d
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x34]
call fcn.004023d0
push eax
lea ecx, [esp + 0x4c]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005de123
add esp, 0x14
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x830], 1
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x830], bl
call fcn.00401070
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
pop ebp
cmp ecx, ebx
mov eax, ecx
jne 0x4b70c1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.005fa919
mov edx, dword [esp + 0xc]
push ebx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x834], 3
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00402d00
mov eax, dword [esp + 0x10]
mov byte [esp + 0x82c], 4
cmp eax, ebx
jne 0x4b7103
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x4b710f
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.005de644
add esp, 8
test eax, eax
jne 0x4b712d
mov eax, dword [esp + 0xc]
lea ecx, [edi + 4]
push eax
push 0x6bc090
push ecx
jmp 0x4b713d
mov edx, dword [0x6ec758]
lea eax, [edi + 4]
push edx
push 0x6c4af4
push eax
call fcn.005f368b
add esp, 0xc
lea ecx, [esp + 0x50]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6ec0c8
push ebx
push 0x6c4ad0
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b71ed
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x54]
push eax
push ecx
push ebx
push ebx
push 0x6c4ac8
push edx
mov dword [esp + 0x38], 0x7d0
call esi
test eax, eax
jne 0x4b71b0
lea eax, [esp + 0x54]
lea ecx, [edi + 8]
push eax
push 0x6bc090
push ecx
call fcn.005f368b
add esp, 0xc
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
lea eax, [esp + 0x3c]
push edx
push eax
push ebx
push ebx
push 0x6c4ac0
push ecx
mov dword [esp + 0x38], 4
call esi
test eax, eax
jne 0x4b71e2
mov eax, dword [esp + 0x3c]
xor edx, edx
cmp eax, ebx
setne dl
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov byte [esp + 0x82c], 3
call fcn.00401070
lea ecx, [esp + 0xc]
mov byte [esp + 0x82c], bl
call fcn.005fa859
lea ecx, [esp + 0x10]
mov dword [esp + 0x82c], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x824
ret