Function at 0x4731f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a8c81
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [esp + 0x280]
mov ebp, dword [esp + 0x284]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebx
push 0x206
lea ecx, [esp + 0x6a]
push ebx
mov dword [esp + 0x280], ebx
push ecx
mov word [esp + 0x70], bx
call fcn.00580260
mov edi, 0x104
add esp, 0xc
mov dword [esp + 0x24], edi
call fcn.00472c20
test eax, eax
jne 0x473334
call fcn.00472cc0
test eax, eax
jne 0x473334
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47352f
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4732ea
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47352f
cmp ebp, ebx
je 0x47331b
push edi
lea eax, [esp + 0x68]
push eax
push ebp
call fcn.0057a8a1
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x14]
call fcn.00404130
mov eax, 1
jmp 0x473531
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x14]
call fcn.00404130
jmp 0x47352f
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x278], 1
call fcn.00472d40
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x280], 2
call fcn.0040b6f0
mov edi, 8
mov byte [esp + 0x278], 1
cmp dword [esp + 0x44], edi
jb 0x47338a
mov eax, dword [esp + 0x30]
push eax
call fcn.00578327
add esp, 4
push 1
push 0x5bd0e8
lea ecx, [esp + 0x50]
call fcn.0040f950
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4733a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.0040f950
cmp dword [esp + 0x60], edi
mov eax, dword [esp + 0x4c]
jae 0x4733c8
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4733f1
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
jmp 0x473443
cmp dword [esp + 0x60], edi
mov eax, dword [esp + 0x4c]
jae 0x4733ff
lea eax, [esp + 0x4c]
push eax
push reloc.WS2_32.dll_closesocket
xor edx, edx
lea esi, [esp + 0x1c]
call fcn.0040cb60
test eax, eax
je 0x47343f
cmp dword [esp + 0x60], edi
jb 0x473427
mov edx, dword [esp + 0x4c]
push edx
call fcn.00578327
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x47352f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47352f
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x2c]
lea esi, [esp + 0x6c]
call fcn.00472b10
test eax, eax
je 0x473497
cmp dword [esp + 0x60], 8
jb 0x473472
mov edx, dword [esp + 0x4c]
push edx
call fcn.00578327
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
je 0x47352f
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47352f
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4734f4
push 0x103
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.0057a8a1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp ebp, ebx
je 0x4734c1
push ebp
call esi
xor ebp, ebp
cmp dword [esp + 0x60], 8
jb 0x4734d5
mov edx, dword [esp + 0x4c]
push edx
call fcn.00578327
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
je 0x4734ed
push ebp
call esi
mov eax, 1
jmp 0x473531
cmp ebp, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x473503
push ebp
call esi
xor ebp, ebp
cmp dword [esp + 0x60], 8
jb 0x473517
mov eax, dword [esp + 0x4c]
push eax
call fcn.00578327
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
je 0x47352f
push ebp
call esi
xor eax, eax
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.005787fd
add esp, 0x268
ret