Function at 0x404e50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48b981
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov eax, dword [esp + 0x284]
mov ebx, edx
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebp
push 0x20a
lea ecx, [esp + 0x6a]
push ebp
mov dword [esp + 0x284], ebp
push ecx
mov word [esp + 0x70], bp
call fcn.0046ea20
mov edi, 0x104
add esp, 0xc
mov dword [esp + 0x24], edi
call fcn.004048d0
test eax, eax
jne 0x404f8f
call fcn.00404970
test eax, eax
jne 0x404f8f
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebp
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405154
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 ebp
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 0x404f45
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405154
cmp ebx, ebp
je 0x404f76
push edi
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.00469d89
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x14]
call fcn.00416aa0
mov eax, 1
jmp 0x405156
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x14]
call fcn.00416aa0
jmp 0x405154
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
lea ebx, [esp + 0x2c]
mov byte [esp + 0x27c], 1
call fcn.004049f0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x284], 2
call fcn.0040c2f0
mov edi, 8
mov byte [esp + 0x27c], 1
cmp dword [esp + 0x44], edi
jb 0x404fe5
mov eax, dword [esp + 0x30]
push eax
call fcn.00469050
add esp, 4
push 1
push 0x492c00
lea ecx, [esp + 0x50]
call fcn.0040dd80
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405000
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.0040dd80
cmp dword [esp + 0x60], edi
mov eax, dword [esp + 0x4c]
jae 0x405028
lea eax, [esp + 0x4c]
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 0x405141
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x2c]
lea esi, [esp + 0x6c]
mov dword [esp + 0x1c], ebx
call fcn.00416740
test eax, eax
je 0x4050a7
cmp dword [esp + 0x60], 8
jb 0x405082
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00469050
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
je 0x405154
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405154
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405104
push 0x103
lea edx, [esp + 0x68]
push edx
push eax
call fcn.00469d89
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp ebx, ebp
je 0x4050d1
push ebx
call esi
xor ebx, ebx
cmp dword [esp + 0x60], 8
jb 0x4050e5
mov eax, dword [esp + 0x4c]
push eax
call fcn.00469050
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
je 0x4050fd
push ebx
call esi
mov eax, 1
jmp 0x405156
cmp ebx, ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405113
push ebx
call esi
xor ebx, ebx
cmp dword [esp + 0x60], 8
jb 0x405127
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00469050
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
je 0x405154
push ebx
call esi
jmp 0x405154
cmp dword [esp + 0x60], edi
jb 0x405154
mov edx, dword [esp + 0x4c]
push edx
call fcn.00469050
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.00469efd
add esp, 0x26c
ret