Function at 0x100046c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000ec43
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1864
call fcn.1000e390
mov eax, dword [0x10014034]
xor eax, esp
mov dword [esp + 0x1860], eax
push ebx
push esi
push edi
mov eax, dword [0x10014034]
xor eax, esp
push eax
lea eax, [esp + 0x1878]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x10]
xor edi, edi
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
call fcn.10005f30
mov dword [esp + 0x1880], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx - 0xc]
cmp ebx, edi
jge 0x1000473f
push 0x80070057
call fcn.10009030
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, ebx
or eax, edx
jge 0x1000475f
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.10007280
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 1]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__wcsupr_s]
mov eax, dword [esp + 0x18]
add esp, 8
cmp ebx, dword [eax - 8]
jg 0x10004735
mov dword [eax - 0xc], ebx
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + ebx*2], cx
mov eax, dword [esp + 0x10]
lea esi, [eax - 0x10]
cmp esi, esi
je 0x100047d8
cmp dword [esi + 0xc], edi
lea ebx, [esi + 0xc]
jl 0x100047ca
mov ecx, dword [esi]
cmp ecx, ecx
jne 0x100047ca
mov eax, esi
call fcn.100072e0
mov dword [esp + 0x20], eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x100047bd
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 0x10], eax
jmp 0x100047d8
mov ebx, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.100071c0
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
lea edx, [esp + 0x24]
push edx
push 0x20019
push edi
push str.SYSTEMCurrentControlSetEnumUSB
mov byte [esp + 0x1890], 2
push closesocket
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10004d3e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
jmp 0x10004832
xor edi, edi
push 0x7fe
lea edx, [esp + 0x72]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x78], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x30]
push edi
push edi
push edi
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x80]
push edx
push eax
push ecx
mov dword [esp + 0x60], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10004d3a
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
inc dword [esp + 0x2c]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1880], 3
test ecx, 0xffff0000
jne 0x100048d0
mov edx, ecx
movzx esi, dx
push esi
call fcn.10008da0
add esp, 4
cmp eax, edi
je 0x100048fb
push eax
mov eax, esi
lea edi, [esp + 0x18]
call fcn.10006d50
jmp 0x100048f7
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100048d7
sub eax, edx
lea ecx, [esp + 0x6c]
sar eax, 1
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, eax
call fcn.100071c0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x1880], 4
mov edi, dword [ebx - 0xc]
test edi, edi
js 0x10004735
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x1000492e
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.10007280
mov ebx, dword [esp + 0x14]
lea eax, [edi + 1]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__wcsupr_s]
add esp, 8
cmp edi, dword [ebx - 8]
jg 0x10004735
xor ecx, ecx
mov dword [ebx - 0xc], edi
mov word [ebx + edi*2], cx
lea edi, [ebx - 0x10]
cmp edi, edi
je 0x1000499d
cmp dword [edi + 0xc], ecx
lea esi, [edi + 0xc]
jl 0x1000498b
mov edx, dword [edi]
cmp edx, edx
jne 0x1000498b
mov eax, edi
call fcn.100072e0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x10004982
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x1000499d
push ebx
mov ebx, dword [ebx - 0xc]
lea ecx, [esp + 0x18]
push ecx
call fcn.100071c0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004c0e
cmp dword [ebx - 0xc], 0
jl 0x10004c0e
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10004c0e
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x10004c0e
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x10004c3b
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10004c0e
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x6c]
push ecx
push str.SYSTEMCurrentControlSetEnumUSB
push str._s_s
lea edi, [esp + 0x28]
mov byte [esp + 0x188c], 5
call fcn.10007890
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push 0x20019
xor esi, esi
push esi
push eax
push closesocket
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10004be6
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, esi
je 0x10004a6d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], esi
cmp eax, esi
jne 0x10004be6
push 0x7fe
lea edx, [esp + 0x872]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x878], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x64]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x880]
push edx
push 0
mov esi, 0x400
push edi
mov dword [esp + 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10004be6
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x86c]
mov byte [esp + 0x1880], 6
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str._s_s
lea edi, [esp + 0x2c]
call fcn.10007890
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x1076]
push eax
mov word [esp + 0x1078], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x1070]
push edx
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x2c]
push str.CompatibleIDs
push esi
push closesocket
mov dword [esp + 0x70], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10004bc2
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x1070]
call fcn.10005f30
lea edi, [esp + 0x18]
mov byte [esp + 0x1880], 7
call fcn.100060e0
call fcn.10006000
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x10004bb9
push str.USBCLASS_FFSUBCLASS_42
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10004bb9
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
jne 0x10004c45
lea ecx, [esp + 0x18]
call fcn.10005fe0
add esi, 0xfffffff0
mov byte [esp + 0x1880], 5
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x10004be6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x1880], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004c0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x1880], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004830
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x10004830
push 0x80004005
call fcn.10009030
add esi, 0xfffffff0
mov eax, esi
call fcn.100072e0
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1880], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004c80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1880], 5
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004ca1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x1880], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004cc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x1880], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004ced
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10004cfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10004d0b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1880], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004d36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x10004da5
mov ebx, dword [esp + 0x4c]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
call fcn.100077a0
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x10004d6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x10004d76
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1880], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004da1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1878]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1860]
xor ecx, esp
call fcn.1000d9d2
mov esp, ebp
pop ebp
ret 8