Function at 0x4e3510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61b560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
xor esi, esi
push 0x6cb2b8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], esi
call fcn.005fa8c7
push 0x6d58e8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.005fa8c7
push 0x6cb1ac
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.005fa8c7
push 0x6ed014
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.005fa5ce
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x14]
push eax
push ecx
push esi
push 0xf003f
push esi
push 0x6ec0c8
push esi
push 0x6c108c
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4e39ed
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edx
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 4
push 0x6c3998
push ecx
mov dword [ebp - 0x18], edi
call esi
test eax, eax
jne 0x4e35dd
cmp dword [ebp - 0x1c], 2
jne 0x4e35dd
mov byte [ebx + 4], 0
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x6c3988
push ecx
mov dword [ebp - 0x18], edi
call esi
test eax, eax
jne 0x4e3605
cmp dword [ebp - 0x1c], 2
jne 0x4e3605
mov byte [ebx + 5], 0
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x6c3978
push ecx
mov dword [ebp - 0x18], edi
call esi
test eax, eax
jne 0x4e362d
cmp dword [ebp - 0x1c], 2
je 0x4e362d
mov byte [ebx + 6], 1
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x6c3968
push ecx
mov dword [ebp - 0x18], edi
call esi
test eax, eax
jne 0x4e3655
cmp dword [ebp - 0x1c], 2
je 0x4e3655
mov byte [ebx + 7], 1
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
push 0x6d58d8
push eax
mov edi, eax
call esi
test eax, eax
jne 0x4e36cc
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x38]
call fcn.005fac26
lea edx, [ebp - 0x34]
mov ebx, eax
push edx
push ebx
push 0
push 0
push 0x6d58d8
push edi
call esi
test eax, eax
jne 0x4e36c0
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x4e36c0
push ebx
lea eax, [ebp - 0x30]
push 0x6bc090
push eax
call fcn.005f368b
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.005fa859
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
push 0x6d58c8
push eax
mov edi, eax
call esi
test eax, eax
jne 0x4e3744
mov edx, dword [0x6e7b6c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
mov byte [ebp - 4], 6
call fcn.005fac26
lea ecx, [ebp - 0x38]
mov ebx, eax
push ecx
push ebx
push 0
push 0
push 0x6d58c8
push edi
call esi
test eax, eax
jne 0x4e3738
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x4e3738
push ebx
lea edx, [ebp - 0x2c]
push 0x6bc090
push edx
call fcn.005f368b
add esp, 0xc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.005fa859
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
push 0x6d58b8
push eax
mov edi, eax
call esi
test eax, eax
jne 0x4e37bc
mov edx, dword [0x6e7b6c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call fcn.005fac26
lea ecx, [ebp - 0x38]
mov ebx, eax
push ecx
push ebx
push 0
push 0
push 0x6d58b8
push edi
call esi
test eax, eax
jne 0x4e37b0
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x4e37b0
push ebx
lea edx, [ebp - 0x28]
push 0x6bc090
push edx
call fcn.005f368b
add esp, 0xc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.005fa859
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
push 0x6d58a4
push eax
mov edi, eax
call esi
test eax, eax
jne 0x4e3834
mov edx, dword [0x6e7b6c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
mov byte [ebp - 4], 8
call fcn.005fac26
lea ecx, [ebp - 0x38]
mov ebx, eax
push ecx
push ebx
push 0
push 0
push 0x6d58a4
push edi
call esi
test eax, eax
jne 0x4e3828
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x4e3828
push ebx
lea edx, [ebp - 0x24]
push 0x6bc090
push edx
call fcn.005f368b
add esp, 0xc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.005fa859
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push 0x6bdc48
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4e3884
lea ecx, [ebp - 0x20]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bdc48
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4e399e
mov dl, byte [ebx + 4]
push edx
push 0x6be304
push 0x6d58d8
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x6ed028
call fcn.005fa5ce
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
mov byte [ebp - 4], 9
call fcn.005fa5ce
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push ecx
push edx
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004e3290
mov al, byte [ebx + 5]
push eax
push 0x6be2e8
push 0x6d58c8
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x6ed010
call fcn.005fa5ce
push ecx
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
mov byte [ebp - 4], 0xa
call fcn.005fa5ce
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004e3290
mov dl, byte [ebx + 6]
push edx
push 0x6d588c
push 0x6d58b8
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x6ed00c
call fcn.005fa5ce
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0xb
call fcn.005fa5ce
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push ecx
push edx
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004e3290
mov al, byte [ebx + 7]
push eax
push 0x6d5870
push 0x6d58a4
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x6ed014
call fcn.005fa5ce
push ecx
lea edx, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
mov byte [ebp - 4], 0xc
call fcn.005fa5ce
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004e3290
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4e39ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.005fa859
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.005fa859
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.005fa859
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.005fa859
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], esi
jmp 0x4e3837