Function at 0x43d830
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3895
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x660ff8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.systemcurrentcontrolsetenumusb
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43dadc
mov esi, dword [ebp - 0x14]
xor edi, edi
push 0x202
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0x100
call fcn.0048593a
add esp, 4
mov ebx, eax
jmp 0x43d8d3
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x43dac4
call fcn.0040cf77
test eax, eax
je 0x43daee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040d730
test al, al
jne 0x43d926
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040d8d0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x10]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x43daf8
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x43d955
push edi
lea ecx, [ebp - 0x10]
call fcn.0040212b
mov esi, dword [ebp - 0x10]
lea eax, [edi + 1]
push eax
push esi
call fcn.005bca74
add esp, 8
cmp edi, dword [esi - 8]
jg 0x43daf8
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
lea edi, [esi - 0x10]
push edi
call fcn.0040238e
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x43d99f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
jl 0x43da91
push str.VID_
push esi
call fcn.005b41a2
add esp, 8
test eax, eax
je 0x43da91
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x43da91
cmp dword [esi - 0xc], 0
jl 0x43da91
push str.PID_
push esi
call fcn.005b41a2
add esp, 8
test eax, eax
je 0x43da91
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x43da91
push ecx
mov edi, esp
mov dword [ebp - 0x2c], edi
call fcn.0040cf77
test eax, eax
je 0x43daee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
push ebx
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0040d730
test al, al
jne 0x43da30
push ebx
mov ecx, edi
call fcn.0040d8d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0043d3b0
add esp, 4
test al, al
je 0x43da91
push dword [0x66b858]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043de50
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 6
push dword [eax]
mov eax, dword [ebp - 0x24]
push edi
push 0x117c2
mov ecx, dword [eax]
call fcn.0041a290
mov byte [ebp - 4], 4
inc edi
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov dword [ebp - 0x18], edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43da91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
add esi, 0xfffffff0
inc edi
mov dword [ebp - 0x1c], 0x100
mov dword [ebp - 0x20], edi
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43d8d0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43d8d0
test ebx, ebx
je 0x43dad1
push ebx
call fcn.00485943
add esp, 4
test esi, esi
je 0x43dadc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402449
push 0x80070057
call fcn.00402449
int3