Function at 0x473960
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a8bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74]
xor ebp, ebp
mov esi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x6c], ebp
call fcn.00472c20
test eax, eax
jne 0x473a21
call fcn.00472cc0
test eax, eax
jne 0x473a21
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebp
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x473b17
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push ebp
push eax
mov edi, 4
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebp
sete al
jmp 0x473b9e
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
mov ebx, 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], bl
call fcn.00472d40
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
call fcn.0040b6f0
mov edi, 8
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x40], edi
jb 0x473a71
mov eax, dword [esp + 0x2c]
push eax
call fcn.00578327
add esp, 4
push ebx
push 0x5bd0e8
lea ecx, [esp + 0x4c]
call fcn.0040f950
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x473a85
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.0040f950
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x473aad
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebp
push eax
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x473ad2
mov esi, dword [esp + 0x14]
jmp 0x473b22
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x473ae0
lea eax, [esp + 0x48]
push eax
push reloc.WS2_32.dll_closesocket
xor edx, edx
lea esi, [esp + 0x20]
call fcn.0040cb60
test eax, eax
je 0x473b1e
cmp dword [esp + 0x5c], edi
jb 0x473b08
mov edx, dword [esp + 0x48]
push edx
call fcn.00578327
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x473b17
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x473b9e
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
mov edi, 4
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x14], edi
mov edi, 0xd
jne 0x473b58
mov edi, eax
cmp esi, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x473b67
push esi
call ebx
xor esi, esi
xor ecx, ecx
cmp edi, ebp
sete cl
cmp dword [esp + 0x5c], 8
mov edi, ecx
jb 0x473b84
mov edx, dword [esp + 0x48]
push edx
call fcn.00578327
add esp, 4
cmp esi, ebp
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
je 0x473b9c
push esi
call ebx
mov eax, edi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.005787fd
add esp, 0x5c
ret