Function at 0x4781d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525968
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.004012b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004012b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
lea eax, [ebp + 8]
push eax
call fcn.0040e030
mov dword [ebp - 0x7c], eax
call fcn.00477d20
add esp, 0x28
mov byte [ebp - 0x7d], al
movzx ecx, byte [ebp - 0x7d]
test ecx, ecx
jne 0x47828f
mov byte [ebp - 0x69], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x69]
jmp 0x4783cf
cmp dword [ebp - 0x54], reloc.WS2_32.dll_accept
jne 0x4782b2
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x4782b2
mov dword [ebp - 0x54], reloc.WS2_32.dll_accept
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x4c]
call fcn.00401340
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x478384
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
lea edx, [ebp - 0x60]
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47837a
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0x24]
jne 0x47837a
mov eax, dword [ebp - 0x60]
push eax
call fcn.004828fb
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478368
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
mov byte [ebp - 0x55], 1
jmp 0x47837a
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.004b9d83
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x54]
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x47839f
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x55]
mov byte [ebp - 0x75], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401320
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret