Function at 0x10044b20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x100e7760
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x818]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
cmp eax, esi
jne 0x10044bb1
cmp edi, esi
je 0x10044bd1
mov eax, edi
lea edx, [eax + 2]
jmp 0x10044ba0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10044ba0
sub eax, edx
sar eax, 1
je 0x10044bd1
cmp dword [ebp - 0x1c], esi
jne 0x10044be6
cmp ebx, esi
je 0x10044bd1
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10044bc0
sub eax, edx
sar eax, 1
jne 0x10044be6
mov dword [ebp - 0x40], 0x57
push 0x1012ac78
lea edx, [ebp - 0x40]
push edx
call fcn.100c80ad
cmp dword [ebp - 0x20], esi
jne 0x10044bf2
mov dword [ebp - 0x20], reloc.WSOCK32.dll_bind
cmp edi, esi
je 0x10044c3e
mov eax, edi
lea edx, [eax + 2]
jmp 0x10044c00
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10044c00
sub eax, edx
sar eax, 1
je 0x10044c3e
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push edi
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x10044c44
mov dword [ebp - 0x34], eax
push 0x1012ac78
lea edx, [ebp - 0x34]
push edx
call fcn.100c80ad
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], esi
jne 0x10044c50
mov dword [ebp - 0x1c], reloc.WSOCK32.dll_bind
cmp ebx, esi
je 0x10044c9b
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10044c60
sub eax, edx
sar eax, 1
je 0x10044c9b
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov edx, ebx
call fcn.100440f0
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x10044ca3
mov dword [ebp - 0x48], eax
push 0x1012ac78
lea eax, [ebp - 0x48]
push eax
call fcn.100c80ad
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
jmp 0x10044ca6
mov edi, dword [ebp - 0x24]
cmp byte [ebp + 0x81c], 0
je 0x10044d7f
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x30]
push ecx
push esi
push esi
push esi
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x10044ce3
mov dword [ebp - 0x3c], eax
push 0x1012ac78
lea eax, [ebp - 0x3c]
push eax
call fcn.100c80ad
mov dword [ebp - 0x44], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea esp, [esp]
cmp esi, dword [ebp - 0x30]
jge 0x10044d7d
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.100c7d20
add esp, 0xc
mov dword [ebp - 0x2c], 0x800
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp]
push eax
push esi
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10044d6c
mov edx, dword [ebp + 0x81c]
push edx
lea eax, [ebp]
push eax
push edi
mov ecx, eax
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10044b20
add esp, 0x14
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10044d64
mov dword [ebp - 0x4c], eax
push 0x1012ac78
lea eax, [ebp - 0x4c]
push eax
call fcn.100c80ad
add esi, 1
mov dword [ebp - 0x44], esi
jmp 0x10044cf0
mov dword [ebp - 0x38], eax
push 0x1012ac78
lea ecx, [ebp - 0x38]
push ecx
call fcn.100c80ad
xor esi, esi
push edi
mov ecx, dword [ebp - 0x18]
call fcn.10044930
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x10044dc3
cmp edi, esi
je 0x10044dd3
cmp edi, dword [ebp - 0x1c]
je 0x10044dd3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x10044de6
cmp eax, dword [ebp - 0x20]
je 0x10044de6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x804
mov esp, ebp
pop ebp
ret