Function at 0x52d040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56afb8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
push dword [0x5c6a80]
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x52d5ae
push str.MountedDevices
mov edx, 0x5c6a80
lea ecx, [ebp - 0x3c]
call fcn.00528330
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov edx, dword [eax]
push 1
push ecx
mov ecx, reloc.WS2_32.dll_closesocket
call fcn.00518680
add esp, 8
test al, al
sete bl
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x3c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x52d0e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x52d16b
push 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
je 0x52d144
push dword [ebp - 0x14]
call dword [0x5c00ac]
push dword [0x5c6a80]
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.MSVCR120.dll_malloc]
inc eax
mov dword [ebp - 0x24], eax
add eax, eax
push eax
call esi
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x52d195
push dword [ebp - 0x14]
call dword [0x5c00ac]
push dword [0x5c6a80]
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x34]
call esi
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x52d1e1
push dword [ebp - 0x14]
call dword [0x5c00ac]
push dword [0x5c6a80]
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
push ebx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
call fcn.00522370
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push eax
push esi
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x52d55d
lea ebx, [ebx]
push esi
lea ecx, [ebp - 0x10]
call fcn.005224a0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x52d51a
push str.DosDevices_
push eax
call dword [sym.imp.MSVCR120.dll_wcsstr]
add esp, 8
test eax, eax
je 0x52d51a
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x52d51a
mov eax, dword [ebp - 0x28]
cmp eax, 0xc
je 0x52d3d7
cmp eax, 0x18
jne 0x52d51a
push eax
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.005274d0
add esp, 4
mov byte [ebp - 4], 7
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], edi
jle 0x52d3ab
push edi
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00528180
mov byte [ebp - 4], 8
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.005241b0
mov bl, al
mov byte [ebp - 4], 7
or edx, 0xffffffff
mov esi, dword [ebp - 0x40]
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52d2dd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x52d30b
push 0x5c
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR120.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x52d30b
mov ecx, dword [ebp - 0x10]
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x52d30b
mov eax, dword [ecx - 0xc]
sub eax, esi
cmp eax, 3
je 0x52d319
mov eax, dword [ebp + 0xc]
inc edi
cmp edi, dword [eax + 8]
jl 0x52d2a0
jmp 0x52d3a8
lea ecx, [ebp - 0x5c]
call fcn.0052d5d0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
push edi
push eax
call fcn.005280a0
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x52d553
movzx eax, word [eax]
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.00522440
inc esi
js 0x52d553
push esi
lea ecx, [ebp - 0x10]
call fcn.0052d6e0
movzx eax, ax
lea ecx, [ebp - 0x58]
mov word [ebp - 0x5a], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.00522780
sub esp, 8
lea eax, [ebp - 0x5c]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00529390
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 8]
lea ecx, [ecx + 0x34]
mov byte [ebp - 4], 0xa
call fcn.0052d730
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
call fcn.00529400
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x52d51a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x52d51a
mov eax, dword [ebp - 0x18]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x4c], eax
cmp dword [ebx + 8], edi
jle 0x52d517
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebx + 4]
mov esi, dword [ecx + eax + 0xc]
test esi, esi
je 0x52d412
mov ecx, dword [ecx + eax + 0x10]
jmp 0x52d414
xor ecx, ecx
cmp ecx, edx
jne 0x52d455
xor ecx, ecx
xor edx, edx
test esi, esi
je 0x52d42b
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + eax + 0x18]
mov edx, dword [edx + eax + 0x1c]
cmp ecx, dword [ebp - 0x48]
jne 0x52d452
cmp edx, dword [ebp - 0x4c]
jne 0x52d452
push ecx
lea ecx, [ebp - 0x10]
call fcn.0052d650
mov esi, eax
cmp esi, 0xffffffff
je 0x52d452
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
sub ecx, esi
cmp ecx, 3
je 0x52d469
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
inc edi
add ecx, 0x28
mov dword [ebp - 0x30], ecx
cmp edi, dword [ebx + 8]
jl 0x52d401
jmp 0x52d514
lea ecx, [ebp - 0x64]
call fcn.0052d5d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x50]
push edi
push eax
mov ecx, ebx
call fcn.005280a0
mov byte [ebp - 4], 4
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x52d553
movzx eax, word [eax]
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.00522440
inc esi
js 0x52d553
push esi
lea ecx, [ebp - 0x10]
call fcn.0052d6e0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
movzx eax, ax
push 0xc
mov word [ebp - 0x62], ax
call fcn.005274d0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
push eax
call fcn.00522780
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00522440
sub esp, 8
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00529390
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
lea ecx, [ecx + 0x34]
mov byte [ebp - 4], 3
call fcn.0052d730
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00529400
mov esi, dword [ebp - 0x1c]
or edi, 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
inc ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
push 0
push 0
push eax
push esi
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x52d55d
mov ebx, dword [ebp - 0x18]
jmp 0x52d230
push 0x80070057
call fcn.00521730
push dword [ebp - 0x14]
call dword [0x5c00ac]
push dword [0x5c6a80]
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
push esi
mov esi, dword [sym.imp.MSVCR120.dll_free]
call esi
add esp, 4
push dword [ebp - 0x18]
call esi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x52d5ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8