Function at 0x4162f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60cf30
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
push eax
xor ebp, ebp
push 0xf003f
push ebp
push 0x6bdc48
push reloc.WS2_32.dll_accept
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x41634b
mov ecx, dword [esp + 0x10]
push 0x6bdc34
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebp
push 0x6bdc04
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
je 0x41637a
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0xf003f
push ebp
push 0x6bdbfc
push edx
call ebx
test eax, eax
jne 0x41640f
mov eax, dword [esp + 0x10]
push 0x6bdbf8
push eax
call esi
mov ecx, dword [esp + 0x10]
push 0x6bdbf4
push ecx
call esi
mov eax, dword [0x6ec780]
xor edi, edi
cmp eax, ebp
je 0x4163f4
push ebp
push ebp
mov ecx, dword [esp + 0x18]
push ebp
lea edx, [esp + 0x24]
push ebp
push edx
push ebp
lea eax, [esp + 0x34]
push ebp
push eax
push ebp
push ebp
push ebp
push ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4163f4
cmp dword [esp + 0x18], ebp
jne 0x4163f4
cmp dword [esp + 0x1c], ebp
jne 0x4163f4
mov edi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebp
je 0x41640f
mov eax, dword [esp + 0x14]
push 0x6bdbfc
push eax
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebp
push 0x6bdbec
push edx
call ebx
test eax, eax
jne 0x416497
mov eax, dword [esp + 0x10]
push 0x6bdbf8
push eax
call esi
mov eax, dword [0x6ec780]
xor edi, edi
cmp eax, ebp
je 0x41647c
push ebp
push ebp
mov eax, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x28]
push ebp
push ecx
push ebp
lea edx, [esp + 0x30]
push ebp
push edx
push ebp
push ebp
push ebp
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41647c
cmp dword [esp + 0x1c], ebp
jne 0x41647c
cmp dword [esp + 0x18], ebp
jne 0x41647c
mov edi, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebp
je 0x416497
mov edx, dword [esp + 0x14]
push 0x6bdbec
push edx
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebp
push 0x6bdbe4
push ecx
call ebx
test eax, eax
jne 0x41652b
mov edx, dword [esp + 0x10]
push 0x6bdbf8
push edx
call esi
mov eax, dword [esp + 0x10]
push 0x6bdbf4
push eax
call esi
mov eax, dword [0x6ec780]
xor edi, edi
cmp eax, ebp
je 0x416510
push ebp
push ebp
mov eax, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x28]
push ebp
push ecx
push ebp
lea edx, [esp + 0x30]
push ebp
push edx
push ebp
push ebp
push ebp
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x416510
cmp dword [esp + 0x1c], ebp
jne 0x416510
cmp dword [esp + 0x18], ebp
jne 0x416510
mov edi, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebp
je 0x41652b
mov edx, dword [esp + 0x14]
push 0x6bdbe4
push edx
call esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret