Function at 0x10004820
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 0x1000eda3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1864
call fcn.1000e4f0
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.100060a0
mov dword [esp + 0x1880], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx - 0xc]
cmp ebx, edi
jge 0x1000489f
push 0x80070057
call fcn.100091a0
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, ebx
or eax, edx
jge 0x100048bf
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.100073f0
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 0x10004895
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 0x10004938
cmp dword [esi + 0xc], edi
lea ebx, [esi + 0xc]
jl 0x1000492a
mov ecx, dword [esi]
cmp ecx, ecx
jne 0x1000492a
mov eax, esi
call fcn.10007450
mov dword [esp + 0x20], eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x1000491d
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 0x10004938
mov ebx, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.10007330
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 0x10004e9e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
jmp 0x10004992
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 0x10004e9a
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 0x10004a30
mov edx, ecx
movzx esi, dx
push esi
call fcn.10008f10
add esp, 4
cmp eax, edi
je 0x10004a5b
push eax
mov eax, esi
lea edi, [esp + 0x18]
call fcn.10006ec0
jmp 0x10004a57
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004a37
sub eax, edx
lea ecx, [esp + 0x6c]
sar eax, 1
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, eax
call fcn.10007330
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x1880], 4
mov edi, dword [ebx - 0xc]
test edi, edi
js 0x10004895
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x10004a8e
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.100073f0
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 0x10004895
xor ecx, ecx
mov dword [ebx - 0xc], edi
mov word [ebx + edi*2], cx
lea edi, [ebx - 0x10]
cmp edi, edi
je 0x10004afd
cmp dword [edi + 0xc], ecx
lea esi, [edi + 0xc]
jl 0x10004aeb
mov edx, dword [edi]
cmp edx, edx
jne 0x10004aeb
mov eax, edi
call fcn.10007450
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x10004ae2
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 0x10004afd
push ebx
mov ebx, dword [ebx - 0xc]
lea ecx, [esp + 0x18]
push ecx
call fcn.10007330
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004d6e
cmp dword [ebx - 0xc], 0
jl 0x10004d6e
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10004d6e
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x10004d6e
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x10004d9b
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10004d6e
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.10007a00
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 0x10004d46
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, esi
je 0x10004bcd
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 0x10004d46
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 0x10004d46
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.10007a00
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 0x10004d22
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x1070]
call fcn.100060a0
lea edi, [esp + 0x18]
mov byte [esp + 0x1880], 7
call fcn.10006250
call fcn.10006170
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x10004d19
push str.USBCLASS_FFSUBCLASS_42
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10004d19
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
jne 0x10004da5
lea ecx, [esp + 0x18]
call fcn.10006150
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 0x10004d46
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 0x10004d6e
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 0x10004990
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x10004990
push 0x80004005
call fcn.100091a0
add esi, 0xfffffff0
mov eax, esi
call fcn.10007450
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 0x10004de0
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 0x10004e01
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 0x10004e29
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 0x10004e4d
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 0x10004e5c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10004e6b
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 0x10004e96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x10004f05
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.10007910
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x10004ecb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x10004ed6
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 0x10004f01
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.1000db42
mov esp, ebp
pop ebp
ret 8