Function at 0x5f3680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa78
mov eax, 0x69d2ab
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x64], 0x6e5c40
mov dword [ebp - 0x60], esp
mov dword [ebp - 0x68], eax
mov word [ebp - 0x5c], 0
mov dword [ebp - 0x50], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x6c], ecx
lea eax, [ebp - 0x6c]
mov dword fs:[0], eax
mov word [ebp - 0x5c], 8
xor edx, edx
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x70], 0x40
mov dword [ebp - 0x74], 1
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
cmp edx, ecx
jbe 0x5f36f4
lea eax, [ebp - 0x74]
jmp 0x5f36f7
lea eax, [ebp - 0x70]
mov edx, dword [eax]
mov dword [ebp - 0x20], edx
inc dword [ebp - 0x50]
mov word [ebp - 0x5c], 0x20
mov eax, dword [ebx + 8]
mov dword [ebp - 0x78], eax
mov esi, dword [ebx + 4]
push esi
push eax
mov eax, dword [ebp - 0x78]
push eax
call fcn.004057f0
mov ecx, dword [ebp - 0x78]
add esp, 0xc
sub ecx, esi
mov edx, dword [ebx + 8]
test ecx, ecx
jns 0x5f372b
add ecx, 0xf
sar ecx, 4
shl ecx, 4
sub dword [ebx + 8], ecx
push edx
push eax
push ebx
call fcn.0040445c
lea eax, [edi + 0x10]
add esp, 0xc
add esp, 0xfffffff0
lea esi, [edi + 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x154], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x150], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x14c], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x148], eax
mov eax, edi
mov edx, dword [eax]
mov dword [ebp - 0x164], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x160], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x15c], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x158], eax
mov edx, dword [ebp - 0x164]
mov dword [esp], edx
mov edx, dword [ebp - 0x160]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x15c]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x158]
mov dword [esp + 0xc], eax
add esp, 0xfffffff0
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov edx, dword [esi + 8]
mov dword [esp + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0xc], ecx
add esp, 0xfffffff0
mov eax, dword [ebp - 0x154]
mov dword [esp], eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], eax
lea eax, [ebp - 0x174]
mov edx, dword [ebp - 0x14c]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x148]
mov dword [esp + 0xc], ecx
push edi
push eax
call fcn.005bb35c
add esp, 0x38
mov ecx, 4
push esi
push edi
lea esi, [ebp - 0x174]
add edi, 0x10
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x180], eax
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x17c], edx
lea edx, [ebp - 0x24c]
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x178], ecx
push 0x6ddb08
mov eax, dword [ebp + 0x14]
push eax
push 0x6ddae6
push 0x6ddadf
push edx
call fcn.006a0ad0
add esp, 0x14
lea ecx, [ebp - 0x7c]
push ecx
push 0x20019
push 0
lea eax, [ebp - 0x24c]
push eax
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x5f38c9
dec dword [ebp - 0x50]
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040445c
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x80], edx
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0067ac7c
pop ecx
mov eax, dword [ebp - 0x6c]
mov dword fs:[0], eax
jmp 0x5f401e
push 0
call fcn.006a99d0
pop ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], 0xc8
mov dword [ebp - 0x8c], 0x1f4
xor esi, esi
jmp 0x5f3f79
mov al, byte [ebp - 0x314]
test al, al
je 0x5f3f64
mov byte [ebp - 0x8d], 1
mov word [ebp - 0x5c], 0x20
movsx edx, byte [ebp - 0x508]
cmp edx, 0x30
jne 0x5f3920
mov byte [ebp - 0x8d], 0
movsx ecx, byte [ebp - 0x507]
cmp ecx, 0x7c
jne 0x5f3bb5
movsx eax, byte [ebp - 0x506]
cmp eax, 0x30
je 0x5f3bb5
lea edx, [ebp - 0x506]
push edx
call fcn.006a51a0
pop ecx
test eax, eax
jle 0x5f3bb5
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jg 0x5f3bb5
mov word [ebp - 0x5c], 0x38
lea eax, [ebp - 0x98]
push eax
lea edx, [ebp - 0x314]
push edx
lea ecx, [ebp - 0x30]
push ecx
call fcn.0069a6ec
add esp, 0xc
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
cmp eax, edx
je 0x5f3adc
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x5f3ad6
mov word [ebp - 0x5c], 0x44
xor edx, edx
mov dword [ebp - 0xa0], edx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx - 0xc]
inc ecx
test ecx, ecx
jle 0x5f3a33
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xa4]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x510], ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 8]
add edx, 0xfffffff4
mov dword [ebp - 0xac], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0xac]
cmp ecx, eax
je 0x5f3ad0
mov edx, dword [ebp - 0xac]
push edx
call sub.KERNEL32.DLL_InterlockedIncrement
jmp 0x5f3ad0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx - 4]
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0xb0]
push ecx
mov eax, dword [ebp - 0x34]
push eax
call fcn.0069a874
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
add edx, 0xc
mov dword [ebp - 0xb4], edx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xb4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xbc], edx
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x520], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xc0], edx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc4], ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 8]
mov dword [ebp - 0xc8], edx
mov ecx, dword [ebp - 0xc0]
push ecx
mov eax, dword [ebp - 0xc4]
push eax
mov edx, dword [ebp - 0xc8]
push edx
call fcn.0069cc60
add esp, 0xc
mov word [ebp - 0x5c], 0x38
add dword [ebp - 0x18], 0x10
jmp 0x5f3af0
lea ecx, [ebp - 0x30]
push ecx
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.004069b4
add esp, 0xc
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x5f3ba8
mov eax, dword [ebp - 0x28]
mov edx, dword [eax - 0xc]
inc edx
test edx, edx
je 0x5f3b5a
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
mov dword [ebp - 0xcc], ecx
mov eax, 0x6ff36c
mov edx, dword [ebp - 0xcc]
cmp eax, edx
je 0x5f3b51
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0xcc]
cmp ecx, eax
je 0x5f3b4a
mov edx, dword [ebp - 0xcc]
push edx
call sub.KERNEL32.DLL_InterlockedDecrement
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ecx]
inc eax
jmp 0x5f3b56
mov eax, 1
jmp 0x5f3b56
mov eax, 1
test eax, eax
jne 0x5f3ba8
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff4
mov dword [ebp - 0xd0], edx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
mov dword [ebp - 0xd4], ecx
mov eax, dword [ebp - 0xd4]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0xd8], edx
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0xdc]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x530], ecx
mov word [ebp - 0x5c], 0x20
mov byte [ebp - 0x314], 0
mov al, byte [ebp - 0x314]
test al, al
je 0x5f3f64
mov word [ebp - 0x5c], 0x68
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x314]
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.0069a6ec
add esp, 0xc
inc dword [ebp - 0x50]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x18]
cmp edx, ecx
je 0x5f3d3c
mov eax, dword [ebx + 8]
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0x48], edx
test edx, edx
je 0x5f3d36
mov word [ebp - 0x5c], 0x74
xor eax, eax
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xec]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx - 0xc]
inc ecx
test ecx, ecx
jle 0x5f3c93
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xf0]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x540], ecx
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + 8]
add edx, 0xfffffff4
mov dword [ebp - 0xf8], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0xf8]
cmp ecx, eax
je 0x5f3d30
mov edx, dword [ebp - 0xf8]
push edx
call sub.KERNEL32.DLL_InterlockedIncrement
jmp 0x5f3d30
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx - 4]
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0xfc]
push edx
mov ecx, dword [ebp - 0xfc]
push ecx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0069a874
add esp, 0xc
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
add edx, 0xc
mov dword [ebp - 0x100], edx
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x100]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x108], edx
mov ecx, dword [ebp - 0x108]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x550], eax
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x10c], edx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x110], ecx
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + 8]
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp - 0x10c]
push ecx
mov eax, dword [ebp - 0x110]
push eax
mov edx, dword [ebp - 0x114]
push edx
call fcn.0069cc60
add esp, 0xc
mov word [ebp - 0x5c], 0x68
add dword [ebx + 8], 0x10
jmp 0x5f3d4d
lea ecx, [ebp - 0x44]
push ecx
mov eax, dword [ebx + 8]
push eax
push ebx
call fcn.004069b4
add esp, 0xc
dec dword [ebp - 0x50]
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x5f3e05
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx - 0xc]
inc eax
test eax, eax
je 0x5f3db7
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff4
mov dword [ebp - 0x118], edx
mov ecx, 0x6ff36c
mov eax, dword [ebp - 0x118]
cmp ecx, eax
je 0x5f3dae
mov edx, 0x6ff36c
mov ecx, dword [ebp - 0x118]
cmp edx, ecx
je 0x5f3da7
mov eax, dword [ebp - 0x118]
push eax
call sub.KERNEL32.DLL_InterlockedDecrement
mov edx, dword [ebp - 0x118]
mov ecx, dword [edx]
inc ecx
jmp 0x5f3db3
mov ecx, 1
jmp 0x5f3db3
mov ecx, 1
test ecx, ecx
jne 0x5f3e05
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff4
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff4
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.0067ac7c
pop ecx
xor edx, edx
mov dword [ebp - 0x124], edx
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x560], ecx
mov word [ebp - 0x5c], 0x20
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x28]
cmp eax, edx
je 0x5f3f1c
mov cl, byte [ebp - 0x8d]
lea eax, [edi + 0x10]
mov byte [ebp - 0x129], cl
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov ecx, dword [edx]
mov dword [ebp - 0x578], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x574], ecx
mov eax, dword [ebp - 0x130]
mov edx, dword [eax + 8]
mov dword [ebp - 0x570], edx
mov ecx, dword [ebp - 0x130]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x56c], eax
mov edx, dword [ebp - 0x130]
mov ecx, dword [edx + 0xc]
inc dword [edx + 0xc]
cmp ecx, 0x1f
jne 0x5f3e89
mov eax, dword [ebp - 0x130]
xor edx, edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x130]
add dword [ecx + 8], 4
mov eax, dword [ebp - 0x578]
mov dword [ebp - 0x588], eax
mov eax, dword [ebp - 0x574]
mov dword [ebp - 0x584], eax
mov edx, dword [ebp - 0x570]
mov dword [ebp - 0x580], edx
mov ecx, dword [ebp - 0x56c]
mov dword [ebp - 0x57c], ecx
mov ecx, dword [ebp - 0x57c]
mov eax, 1
shl eax, cl
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x580]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x13c], edx
mov cl, byte [ebp - 0x129]
test cl, cl
je 0x5f3f0a
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
or dword [eax], edx
jmp 0x5f3f64
mov ecx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
not ecx
and dword [eax], ecx
jmp 0x5f3f64
mov dl, byte [ebp - 0x8d]
lea ecx, [edi + 0x10]
push edx
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp - 0x144]
add esp, 0xfffffff0
mov edx, dword [eax]
mov dword [esp], edx
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x144]
mov eax, dword [ecx + 8]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x144]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0xc], ecx
push edi
call fcn.005bb47c
add esp, 0x18
mov dword [ebp - 0x88], 0xc8
mov dword [ebp - 0x8c], 0x1f4
inc esi
lea eax, [ebp - 0x8c]
push eax
lea edx, [ebp - 0x508]
push edx
push 0
push 0
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0x314]
push eax
push esi
mov edx, dword [ebp - 0x7c]
push edx
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
je 0x5f38f2
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebp - 0x5c], 0x20
xor ebx, ebx
jmp 0x5f3fd7
mov eax, ebx
mov ecx, dword [ebp + 0x14]
shl eax, 4
push ecx
add eax, edx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.005d715c
add esp, 0xc
inc ebx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub eax, edx
test eax, eax
jns 0x5f3fe6
add eax, 0xf
sar eax, 4
cmp ebx, eax
jb 0x5f3fbe
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 0x18]
push ecx
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.0040445c
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0067ac7c
pop ecx
mov word [ebp - 0x5c], 0x20
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret