Function at 0x5ba790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jne 0x5ba812
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5ba7d3
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x5ba818
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x5babf7
push eax
call fcn.005de123
add esp, 4
cmp eax, 3
jbe 0x5babf7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.005dfbfe
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test ebx, ebx
mov dword [ebp + 0xc], 0x104
je 0x5ba88d
mov eax, dword [ecx + 0x418]
test eax, eax
jne 0x5ba83e
push ebx
call fcn.005bd090
test al, al
je 0x5babf7
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x418]
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x2b8]
push edx
push eax
push 0
push 0
push 0x6d905c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5ba8f8
mov edx, dword [ebp - 0x14]
push 0x6e0928
mov ecx, dword [edx + 0x410]
call fcn.0054f300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
lea eax, [ebp - 0xb0]
push 0x6dffc4
push eax
call fcn.005deb38
add esp, 0x10
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0xb0]
push ecx
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5babf7
mov edx, dword [ebp - 0x18]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x2b8]
push eax
push ecx
push 0
push 0
push 0x6d905c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5babf7
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x6e7b6c]
mov dword [ebp + 0x10], ecx
lea edx, [ebp - 0x2b8]
mov byte [ebp - 4], 1
push edx
call fcn.005dfbfe
add esp, 4
cmp eax, 0xffffffff
jne 0x5ba944
lea eax, [ebp - 0x2b8]
lea ecx, [ebp + 0x10]
push eax
push 0x6d840c
push ecx
call fcn.005f368b
add esp, 0xc
test ebx, ebx
je 0x5ba9b3
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [eax + 0x410]
jmp 0x5ba96d
lea ecx, [ebp - 0x2b8]
lea edx, [ebp + 0x10]
push ecx
push 0x6d83f4
push edx
call fcn.005f368b
add esp, 0xc
test ebx, ebx
je 0x5ba9b3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ecx + 0x410]
call fcn.0054f300
push ebx
lea edx, [ebp - 0xb0]
push 0x6d8ee4
push edx
call fcn.005deb38
add esp, 0xc
lea eax, [ebp - 0x30]
lea ecx, [ebp + 8]
lea edx, [ebp - 0xb0]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x5ba9ee
push esi
push edi
lea eax, [ebp - 0xb0]
push 0x6d8d28
push eax
call fcn.005deb38
add esp, 0x10
lea ecx, [ebp + 8]
lea edx, [ebp - 0xb0]
push ecx
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5babeb
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push eax
push ecx
push 0
push 0
push 0x6c3578
push edx
mov dword [ebp + 0xc], 0x10
call ebx
test eax, eax
jne 0x5babe1
lea eax, [ebp - 0x2b8]
push eax
call fcn.005de123
lea ecx, [eax + eax + 0x14]
push ecx
call fcn.005f6c5c
mov esi, eax
add esp, 8
test esi, esi
je 0x5babeb
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5bab16
push eax
lea edx, [ebp - 0x1c]
push 0x6d95f8
push edx
mov edi, eax
call fcn.005deb38
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push ecx
push 0
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x5baac6
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2b8]
push ecx
push edx
push 0x6d8658
push esi
call fcn.005df06c
push esi
call fcn.005dfbfe
add esp, 0x14
cmp eax, 0xffffffff
push esi
jne 0x5baaa3
push 0x6d840c
jmp 0x5baaa8
push 0x6d83f4
lea eax, [ebp + 0x10]
push eax
call fcn.005f368b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [edx + 0x410]
call fcn.0054f300
push edi
lea eax, [ebp - 0x1c]
push 0x6bc0d4
push eax
call fcn.005deb38
add esp, 0xc
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
push edx
push 0
push 0
push eax
push ecx
call ebx
test eax, eax
je 0x5bab61
push eax
lea edx, [ebp + 0x10]
push 0x6e08f4
push edx
call fcn.005f368b
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ecx + 0x410]
push eax
call fcn.0054f300
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x2c]
push ecx
push edx
push 0
push 0
push 0x6e08f0
push eax
call ebx
test eax, eax
jne 0x5babd8
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2b8]
push ecx
push edx
push 0x6d8658
push esi
call fcn.005df06c
push esi
call fcn.005dfbfe
add esp, 0x14
cmp eax, 0xffffffff
push esi
jne 0x5babb5
push 0x6d840c
jmp 0x5babba
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x2b8]
push edx
push eax
push 0x6d8658
push esi
call fcn.005df06c
push esi
call fcn.005dfbfe
add esp, 0x14
cmp eax, 0xffffffff
push esi
jne 0x5babae
push 0x6d840c
lea ecx, [ebp + 0x10]
push ecx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [eax + 0x410]
push edx
call fcn.0054f300
jmp 0x5baa3d
push 0x6d83f4
jmp 0x5bab8b
push 0x6d83f4
lea eax, [ebp + 0x10]
push eax
call fcn.005f368b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [edx + 0x410]
call fcn.0054f300
push esi
call fcn.005f6c85
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc