Function at 0x56de60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74774e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xae8
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x4c], esi
push 0x208
lea eax, [ebp - 0x6f8]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.007012e0
add esp, 0xc
mov dword [ebp - 0x6c], 0x104
mov dword [ebp - 0x20], 0
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], 0
jb 0x56ded9
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push dword [esi + 0x18]
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x56e321
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
jne 0x56e321
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x56e31f
cmp byte [0xa902b2], 0
mov eax, dword [0x8f02a0]
mov ecx, dword [0x8f029c]
mov dword [ebp - 0x7c], eax
je 0x56df88
cmp byte [0x8f028c], 0
je 0x56df88
test cl, cl
je 0x56dff8
cmp cl, 6
jb 0x56dff8
shr ecx, 8
cmp cl, 3
jb 0x56dff8
jmp 0x56df8c
test cl, cl
je 0x56dff8
mov dword [ebp - 0x1c], 0xb6b54c
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x8f029c]
sub edi, 0x3d3e90
mov edx, edi
mov dword [ebp - 0x18], eax
mov eax, dword [0x8f02a0]
mov dword [ebp - 0x1c], eax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x56dfb1
mov eax, dword [ebp - 0x84]
sub edx, ecx
mov ecx, dword [ebp - 0x20]
push 0
sub esp, 0x10
mov dword [ebp - 0x7c], eax
mov eax, esp
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x80]
push edx
push edi
push 3
push dword [ebp - 0x1c]
mov dword [eax], 2
push dword [ebp - 0x18]
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00513f20
mov edi, dword [ebp - 0x20]
add esp, 0x28
xor edx, edx
mov dword [ebp - 0x1c], edx
test edi, edi
je 0x56e31f
mov ecx, dword [0x155fab8]
mov eax, dword fs:[0x2c]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x24], eax
nop word [eax + eax]
lea eax, [ebp - 0x88]
mov dword [ebp - 0x70], 0x200
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xaf8]
push eax
push edx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x56e321
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x56e05d
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0xaf8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x4e0]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0xd0], 0xcd
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x4e8], 0
mov dword [ebp - 0x4f0], 0x759628
mov dword [ebp - 0x4ec], eax
mov dword [ebp - 0x4e4], 0x1f4
movups xmm0, xmmword [ebp - 0xd0]
push ecx
mov eax, esp
mov byte [ebp - 4], 2
sub esp, 0x10
mov dword [eax], 0
mov eax, esp
push 5
push 0x759c40
movups xmmword [eax], xmm0
lea eax, [ebp - 0x4f0]
push eax
call fcn.0048bcf0
add esp, 0x20
mov dword [ebp - 0x68], 0
xor eax, eax
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
push dword [ebp - 0x4e8]
push dword [ebp - 0x4ec]
call fcn.00483f80
mov ecx, dword [ebp - 0x4ec]
lea eax, [ebp - 0x4e0]
mov byte [ebp - 4], 1
mov dword [ebp - 0x4f0], 0x759628
cmp ecx, eax
je 0x56e17b
mov eax, dword [ebp - 0x4e4]
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x56e171
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56e56b
push edx
push ecx
call fcn.00512900
add esp, 8
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x58]
cmovae ecx, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], ecx
cmp eax, 8
jae 0x56e1bc
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x48], xmm0
jmp 0x56e1fe
mov esi, eax
lea ecx, [ebp - 0x48]
or esi, 7
mov eax, bind
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00483e00
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00700d60
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], 0x20019
mov dword [ebp - 0x2c], reloc.WS2_32.dll_accept
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov ecx, eax
mov eax, dword [0xaf7dfc]
cmp eax, dword [ecx + 0x78c]
jg 0x56e4f7
jmp 0x56e22f
mov ecx, dword [ebp - 0x18]
mov eax, dword [0xaf7e04]
cmp eax, dword [ecx + 0x78c]
jg 0x56e531
cmp byte [0xaf7df8], 0
je 0x56e262
cmp byte [0xaf7e00], 0
je 0x56e25b
or dword [ebp - 0x30], 0x200
jmp 0x56e262
or dword [ebp - 0x30], 0x100
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x56e29d
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x56e293
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56e570
push ecx
push edi
call fcn.00512900
add esp, 8
mov ecx, dword [ebx + 0x2c]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
test ecx, ecx
je 0x56e4f2
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
mov eax, dword [eax + 8]
call eax
mov edi, eax
test edi, edi
jne 0x56e35e
mov edx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x56e30f
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x56e305
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56e570
push edx
push ecx
call fcn.00512900
add esp, 8
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x20]
jb 0x56e020
xor edi, edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x56e32f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x56e347
mov esi, dword [ecx]
lea eax, [ebx + 8]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x28
cmp byte [0xa902b2], 0
mov ecx, dword [0x8f02a4]
je 0x56e395
cmp byte [0x8f028c], 0
je 0x56e395
test cl, cl
je 0x56e4af
cmp cl, 6
jb 0x56e4af
shr ecx, 8
cmp cl, 3
jb 0x56e4af
jmp 0x56e39d
test cl, cl
je 0x56e4af
lea eax, [ebp - 0x48]
mov dword [ebp - 0x24], 0xbca9c2
mov esi, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0xf0]
sub esi, 0x4332de
push eax
call fcn.00514b50
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebx + 0x2c]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x56e3d7
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
jmp 0x56e3dc
mov eax, 0x8f7cac
add eax, 4
push 0x155fac8
push eax
call fcn.00701fb5
mov dword [ebp - 0x4c], eax
mov edx, esi
mov eax, dword [0x8f02a4]
add esp, 8
mov dword [ebp - 0x78], eax
mov eax, dword [0x8f02a8]
mov dword [ebp - 0x18], eax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x56e405
mov eax, dword [ebp - 0x24]
sub edx, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0x14], 0x10
jb 0x56e41f
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xd4]
push 0
sub esp, 0x10
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xa0], eax
mov eax, esp
mov dword [ebp - 0x9c], ecx
lea ecx, [ebp - 0xa8]
push edx
push esi
push 3
push dword [ebp - 0x18]
mov dword [eax], 0xdc
push dword [ebp - 0x78]
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
call fcn.00513f20
mov edx, dword [ebp - 0xdc]
add esp, 0x28
cmp edx, 0x10
jb 0x56e4af
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x56e4a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56e56b
push edx
push ecx
call fcn.00512900
add esp, 8
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x56e321
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x56e4e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56e570
push edx
push ecx
call fcn.00512900
add esp, 8
jmp 0x56e321
call fcn.006ea26d
push 0xaf7dfc
call fcn.006fee91
add esp, 4
cmp dword [0xaf7dfc], 0xffffffff
jne 0x56e22c
mov byte [ebp - 4], 5
call fcn.00516ab0
push 0xaf7dfc
mov byte [0xaf7df8], al
call fcn.006fee47
add esp, 4
jmp 0x56e22c
push 0xaf7e04
call fcn.006fee91
add esp, 4
cmp dword [0xaf7e04], 0xffffffff
jne 0x56e240
mov byte [ebp - 4], 6
call fcn.0056b6f0
push 0xaf7e04
mov byte [0xaf7e00], al
call fcn.006fee47
add esp, 4
jmp 0x56e240
call fcn.0070b6e4
call fcn.0070b6e4
int3