Function at 0x5fd91c0e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xe8
push 0x5fd92058
call fcn.5fd918d9
mov dword [ebp - 0xac], edx
mov esi, ecx
mov dword [ebp - 0xb8], esi
xor ecx, ecx
mov dword [ebp - 0xcc], ecx
mov ebx, ecx
mov dword [ebp - 0xbc], ecx
mov edi, ecx
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd91c56
test dword [eax + 0x1c], 0x400
jne 0x5fdc0fb0
test esi, esi
jne 0x5fd91c62
test edx, edx
je 0x5fdacc91
lea eax, [ebp - 0xbc]
push eax
push 0x20019
push ecx
push 0x5fd91fb8
push reloc.WS2_32.dll_bind
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x5fdc1103
xor ecx, ecx
mov dword [ebp - 0xc0], ecx
lea eax, [ebp - 0xc0]
push eax
push ecx
lea eax, [ebp - 0xc8]
push eax
push ecx
push 0x5fd92018
push dword [ebp - 0xbc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
je 0x5fd91cc4
test esi, esi
jne 0x5fdc1103
mov ecx, dword [ebp - 0xc0]
call fcn.5fd85d21
mov ebx, eax
mov dword [ebp - 0xd0], ebx
test ebx, ebx
je 0x5fda7707
lea eax, [ebp - 0xc0]
push eax
push ebx
lea eax, [ebp - 0xc8]
push eax
xor eax, eax
push eax
push 0x5fd92018
push dword [ebp - 0xbc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x5fdc1103
push dword [ebp - 0xbc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0xbc], ecx
cmp dword [ebp - 0xb8], ecx
jne 0x5fda7614
mov eax, dword [ebp - 0xac]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0xb4], edx
test edx, edx
je 0x5fdc1103
imul esi, edx, 0x6d4
add esi, 0x91c
mov ecx, esi
call fcn.5fd85d21
mov edi, eax
mov dword [ebp - 0xc4], edi
test edi, edi
je 0x5fda7707
push esi
xor eax, eax
push eax
push edi
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
add esp, 0xc
lea esi, [edi + 0x250]
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [edi + 0x22c]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
mov dword [edi + 0x20], 1
cmp dword [ebp - 0xb8], 0
jne 0x5fda766d
xor ecx, ecx
mov dword [ebp - 0xb8], ecx
mov eax, dword [ebp - 0xac]
cmp dword [eax + 0x30], ecx
jbe 0x5fda770e
lea ecx, [eax + 0x70]
mov dword [ebp - 0xb0], ecx
push dword [ecx - 0x20]
push 0x5fd92028
push 0x41
lea eax, [ebp - 0xa8]
push eax
call fcn.5fd8a9b4
add esp, 0x10
mov ecx, dword [ebp - 0xb0]
mov ecx, dword [ecx]
call fcn.5fd910ba
test eax, eax
jne 0x5fda76fc
lea eax, [ebp - 0xa8]
push eax
mov edx, dword [ebp - 0xc0]
mov ecx, ebx
call fcn.5fd926fd
test eax, eax
je 0x5fda76fc
lea eax, [ebp - 0xa8]
push eax
mov edx, 0x105
mov ecx, esi
call fcn.5fd8aba9
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd91e3c
test dword [eax + 0x1c], 0x400
jne 0x5fdc0fee
mov dword [esi + 0x220], edi
add esi, 0x6d0
mov edx, dword [ebp - 0xb8]
inc edx
mov dword [ebp - 0xb8], edx
mov ecx, dword [ebp - 0xb0]
add ecx, 0x68
mov dword [ebp - 0xb0], ecx
mov eax, dword [ebp - 0xac]
cmp edx, dword [eax + 0x30]
mov eax, dword [0x5fde9010]
jb 0x5fd91dc6
xor ecx, ecx
mov edx, dword [ebp - 0xb4]
test edx, edx
je 0x5fdc1026
mov dword [ebp - 0xb0], ecx
lea esi, [edi + 0x24c]
test edx, edx
je 0x5fd91f7c
lea edx, [esi + 4]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
push edx
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0xe8], 0x18
xor ecx, ecx
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 0x40
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
push ecx
push ecx
push ecx
push 3
push 3
push ecx
push ecx
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xe8]
push eax
push closesocket
push esi
call dword [sym.imp.ntdll.dll_NtCreateFile]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
test ecx, ecx
jne 0x5fda7578
cmp dword [esi], eax
je 0x5fda7578
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd91f48
test dword [eax + 0x1c], 0x400
jne 0x5fdc105b
mov ecx, 0x6d0
add esi, ecx
mov edx, dword [ebp - 0xac]
add edx, ecx
mov ecx, dword [ebp - 0xb0]
inc ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], edx
dec dword [ebp - 0xb8]
jne 0x5fd91eb1
mov edx, dword [ebp - 0xb4]
test ecx, ecx
je 0x5fdc10a2
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], ebx
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd91fa6
test dword [eax + 0x1c], 0x400
jne 0x5fdc10cc
mov ecx, edi
call fcn.5fd92263
mov eax, edi
call fcn.5fd91921
ret
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fda7591
test dword [eax + 0x1c], 0x400
jne 0x5fdc107e
mov ecx, 0x6d0
add esi, ecx
mov edx, dword [ebp - 0xac]
add edx, ecx
mov ecx, dword [ebp - 0xb0]
jmp 0x5fd91f64
mov edx, ecx
mov dword [ebp - 0xb4], ecx
mov eax, ebx
mov dword [ebp - 0xb0], ebx
cmp word [ebx], cx
je 0x5fd91d3b
xor edi, edi
jmp 0x5fda765f
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x5fda7631
sub ecx, dword [ebp - 0xb4]
sar ecx, 1
mov eax, dword [ebp - 0xb0]
lea eax, [eax + ecx*2]
add eax, 2
mov dword [ebp - 0xb0], eax
cmp word [eax], di
je 0x5fd91d35
inc edx
mov ecx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0xb4], eax
jmp 0x5fda7631
mov esi, ebx
xor eax, eax
cmp word [ebx], ax
je 0x5fda770e
lea eax, [edi + 0x250]
mov dword [ebp - 0xac], eax
jmp 0x5fda76ae
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xcc]
jne 0x5fda7688
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
xor ecx, ecx
cmp word [esi], cx
mov eax, dword [ebp - 0xac]
je 0x5fda76f2
push esi
mov edx, 0x105
mov ecx, eax
call fcn.5fd8aba9
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fda76d4
test dword [eax + 0x1c], 0x400
jne 0x5fdc0fd0
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x220], edi
add eax, 0x6d0
mov dword [ebp - 0xac], eax
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x5fda7688
mov eax, dword [0x5fde9010]
jmp 0x5fd91e7a
dec dword [ebp - 0xb4]
jmp 0x5fdacc6f
push 0xe
jmp 0x5fdacc93
xor ecx, ecx
jmp 0x5fda76f2
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd91e48
test dword [eax + 0x1c], 0x400
jne 0x5fdc1007
jmp 0x5fd91e48
push 0x57
pop esi
jmp 0x5fdc1103
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x5fdbda94
push 0xd
pop ecx
call fcn.5fdc44b5
mov edx, dword [ebp - 0xac]
xor ecx, ecx
jmp 0x5fd91c56
push dword [ebp - 0xac]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x5fdbda94
push 0xe
pop ecx
call fcn.5fdc7a66
jmp 0x5fda76d4
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x5fdbda94
push 0x10
pop ecx
call fcn.5fdc7a66
jmp 0x5fd91e3c
lea ecx, [ebp - 0xa8]
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x5fdbda94
push 0xf
pop ecx
call fcn.5fdc7a66
jmp 0x5fd91e48
mov esi, 0x10d8
cmp eax, 0x5fde9010
je 0x5fdc1103
test dword [eax + 0x1c], 0x400
je 0x5fdc1103
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x5fdbda94
push 0x11
pop ecx
call fcn.5fdc44b5
jmp 0x5fdc1103
push dword [ebp - 0xac]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x5fdbda94
push 0x12
pop ecx
call fcn.5fdc7a66
mov eax, dword [0x5fde9010]
jmp 0x5fd91f48
push ecx
push dword [ebp - 0xac]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x5fdbda94
push 0x13
pop ecx
call fcn.5fdc7c85
mov eax, dword [0x5fde9010]
jmp 0x5fda7591
cmp eax, 0x5fde9010
je 0x5fdc10c5
test dword [eax + 0x1c], 0x400
je 0x5fdc10c5
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0x5fdbda94
push 0x14
pop ecx
call fcn.5fdc44b5
mov esi, 0x10d8
jmp 0x5fdc1103
lea edx, [edi + 0x24c]
push edx
push ecx
push ebx
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fdd4297
jmp 0x5fd91fa6
cmp dword [ebp - 0xbc], 0
je 0x5fdc1118
push dword [ebp - 0xbc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x5fdc1123
mov ecx, ebx
call fcn.5fd83e2e
test esi, esi
je 0x5fdc112e
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov ecx, edi
call fcn.5fd93654
xor eax, eax
jmp 0x5fd91faf