Function at 0x479430
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x604fd1
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov eax, dword [esp + 0x284]
mov ebp, dword [esp + 0x288]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebx
push 0x20a
lea ecx, [esp + 0x6a]
push ebx
mov dword [esp + 0x284], ebx
push ecx
mov word [esp + 0x70], bx
call fcn.005da970
mov edi, 0x104
add esp, 0xc
mov dword [esp + 0x24], edi
call fcn.00478e90
test eax, eax
jne 0x479574
call fcn.00478f30
test eax, eax
jne 0x479574
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4796f9
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 0x47952a
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4796f9
cmp ebp, ebx
je 0x47955b
push edi
lea eax, [esp + 0x68]
push eax
push ebp
call fcn.005d31ba
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x14]
call fcn.00406200
mov eax, 1
jmp 0x4796fb
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x14]
call fcn.00406200
jmp 0x4796f9
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 1
call fcn.00478fb0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x284], 2
call fcn.00404ae0
mov edi, 8
mov byte [esp + 0x27c], 1
cmp dword [esp + 0x44], edi
jb 0x4795ca
mov eax, dword [esp + 0x30]
push eax
call fcn.005d2367
add esp, 4
push 1
push 0x62454c
lea ecx, [esp + 0x50]
call fcn.0040a070
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4795e0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.0040a070
cmp dword [esp + 0x60], edi
mov eax, dword [esp + 0x4c]
jae 0x479608
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4796e6
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
push edx
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x2c]
lea esi, [esp + 0x6c]
mov dword [esp + 0x1c], ebp
call fcn.00478d80
test eax, eax
je 0x479684
cmp dword [esp + 0x60], 8
jb 0x479662
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005d2367
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
je 0x4796f9
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4796f9
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4796c5
push 0x103
lea edx, [esp + 0x68]
push edx
push eax
call fcn.005d31ba
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp ebp, ebx
je 0x4796ae
push ebp
call edi
xor ebp, ebp
lea esi, [esp + 0x48]
call fcn.00404670
cmp ebp, ebx
je 0x4796be
push ebp
call edi
mov eax, 1
jmp 0x4796fb
cmp ebp, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4796d4
push ebp
call edi
xor ebp, ebp
lea esi, [esp + 0x48]
call fcn.00404670
cmp ebp, ebx
je 0x4796f9
push ebp
call edi
jmp 0x4796f9
cmp dword [esp + 0x60], edi
jb 0x4796f9
mov eax, dword [esp + 0x4c]
push eax
call fcn.005d2367
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x26c
ret