Function at 0x5615d0
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 0x73adee
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.006f4b50
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 0x561649
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 0x561a91
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 0x561a91
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x561a8f
cmp byte [0xa82632], 0
mov eax, dword [str.Output]
mov ecx, dword [0x8e0c50]
mov dword [ebp - 0x7c], eax
je 0x5616f8
cmp byte [0x8e0c40], 0
je 0x5616f8
test cl, cl
je 0x561768
cmp cl, 6
jb 0x561768
shr ecx, 8
cmp cl, 3
jb 0x561768
jmp 0x5616fc
test cl, cl
je 0x561768
mov dword [ebp - 0x1c], 0x9c3ac4
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x8e0c50]
sub edi, 0x23b410
mov edx, edi
mov dword [ebp - 0x18], eax
mov eax, dword [str.Output]
mov dword [ebp - 0x1c], eax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x561721
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.00505470
mov edi, dword [ebp - 0x20]
add esp, 0x28
xor edx, edx
mov dword [ebp - 0x1c], edx
test edi, edi
je 0x561a8f
mov ecx, dword [0x1551db0]
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 0x561a91
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x5617cd
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 - method.fmt::v8::basic_memory_buffer_wchar_t__500__class_std::allocator_wchar_t__.virtual_0], vtable.fmt::v8::basic_memory_buffer_wchar_t__500__class_std::allocator_wchar_t__.0
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 0x74b980
movups xmmword [eax], xmm0
lea eax, [ebp - 0x4f0]
push eax
call fcn.00486360
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.0047e880
mov ecx, dword [ebp - 0x4ec]
lea eax, [ebp - 0x4e0]
mov byte [ebp - 4], 1
mov dword [ebp - method.fmt::v8::basic_memory_buffer_wchar_t__500__class_std::allocator_wchar_t__.virtual_0], vtable.fmt::v8::basic_memory_buffer_wchar_t__500__class_std::allocator_wchar_t__.0
cmp ecx, eax
je 0x5618eb
mov eax, dword [ebp - 0x4e4]
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x5618e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561cdb
push edx
push ecx
call fcn.00503df0
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 0x56192c
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x48], xmm0
jmp 0x56196e
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.0047e700
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.006f45d0
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 [0xaea12c]
cmp eax, dword [ecx + 0x78c]
jg 0x561c67
jmp 0x56199f
mov ecx, dword [ebp - 0x18]
mov eax, dword [0xaea134]
cmp eax, dword [ecx + 0x78c]
jg 0x561ca1
cmp byte [0xaea128], 0
je 0x5619d2
cmp byte [0xaea130], 0
je 0x5619cb
or dword [ebp - 0x30], 0x200
jmp 0x5619d2
or dword [ebp - 0x30], 0x100
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x561a0d
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x561a03
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561ce0
push ecx
push edi
call fcn.00503df0
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 0x561c62
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
mov eax, dword [eax + 8]
call eax
mov edi, eax
test edi, edi
jne 0x561ace
mov edx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x561a7f
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x561a75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561ce0
push edx
push ecx
call fcn.00503df0
add esp, 8
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x20]
jb 0x561790
xor edi, edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x561a9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x561ab7
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 [0xa82632], 0
mov ecx, dword [0x8e0c58]
je 0x561b05
cmp byte [0x8e0c40], 0
je 0x561b05
test cl, cl
je 0x561c1f
cmp cl, 6
jb 0x561c1f
shr ecx, 8
cmp cl, 3
jb 0x561c1f
jmp 0x561b0d
test cl, cl
je 0x561c1f
lea eax, [ebp - 0x48]
mov dword [ebp - 0x24], 0x9fb38a
mov esi, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0xf0]
sub esi, 0x272cae
push eax
call fcn.005060a0
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebx + 0x2c]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x561b47
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
jmp 0x561b4c
mov eax, 0x8e8584
add eax, 4
push 0x1551dc0
push eax
call fcn.006f5785
mov dword [ebp - 0x4c], eax
mov edx, esi
mov eax, dword [0x8e0c58]
add esp, 8
mov dword [ebp - 0x78], eax
mov eax, dword [str.Error]
mov dword [ebp - 0x18], eax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x561b75
mov eax, dword [ebp - 0x24]
sub edx, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0x14], 0x10
jb 0x561b8f
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.00505470
mov edx, dword [ebp - 0xdc]
add esp, 0x28
cmp edx, 0x10
jb 0x561c1f
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x561c15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561cdb
push edx
push ecx
call fcn.00503df0
add esp, 8
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x561a91
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x561c53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x561ce0
push edx
push ecx
call fcn.00503df0
add esp, 8
jmp 0x561a91
call fcn.006ddadd
push 0xaea12c
call fcn.006f2701
add esp, 4
cmp dword [0xaea12c], 0xffffffff
jne 0x56199c
mov byte [ebp - 4], 5
call fcn.00507c20
push 0xaea12c
mov byte [0xaea128], al
call fcn.006f26b7
add esp, 4
jmp 0x56199c
push 0xaea134
call fcn.006f2701
add esp, 4
cmp dword [0xaea134], 0xffffffff
jne 0x5619b0
mov byte [ebp - 4], 6
call fcn.0055ee70
push 0xaea134
mov byte [0xaea130], al
call fcn.006f26b7
add esp, 4
jmp 0x5619b0
call fcn.006fee64
call fcn.006fee64
int3