Function at 0x100021d0
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100052cc
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1000801c]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x1000801c]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x100080d4]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x100080d4
mov dword [esp + 0x30], esi
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push esi
xor ebx, ebx
push ecx
mov dword [esp + 0x278], ebx
call sym.AndroidAPI.dll_Ordinal_4
mov edi, dword [esp + 0x20]
add esp, 8
cmp dword [edi - 0xc], ebx
jne 0x10002283
lea eax, [edi - 0x10]
mov dword [esp + 0x270], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000227c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x10002517
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.SYSTEMCurrentControlSetEnumUSB_
call fcn.10002930
mov byte [esp + 0x270], 1
mov eax, dword [edi - 0xc]
push eax
push edi
lea edx, [esp + 0x1c]
push edx
call fcn.100039e0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 8
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10002318
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x270], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100022f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x270], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10002270
lea ecx, [esp + 0x34]
push ecx
call fcn.10002c70
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x5e]
mov byte [esp + 0x278], 2
push eax
mov word [esp + 0x60], dx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
push 0
push eax
mov dword [esp + 0x44], 0x208
call edi
test eax, eax
jne 0x10002453
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
call fcn.10002930
mov byte [esp + 0x270], 3
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x10002397
xor ecx, ecx
jmp 0x100023a0
mov ecx, dword [esp + 0x48]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x44]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
mov esi, eax
jae 0x100023d9
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
push edx
push ecx
lea edx, [esp + 0x28]
push edx
push 1
push eax
call fcn.10003cc0
add esp, 0x14
add esi, 4
mov dword [esp + 0x44], esi
jmp 0x100023fc
cmp edx, eax
jbe 0x100023e3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
push esi
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x44]
call fcn.10002fe0
mov byte [esp + 0x270], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10002424
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
inc ebx
push ebx
push eax
mov dword [esp + 0x44], 0x104
call edi
test eax, eax
je 0x10002375
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x3c]
push edx
push eax
call sym.AndroidAPI.dll_Ordinal_6
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push ecx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x34]
call fcn.10002cd0
mov byte [esp + 0x270], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
test bl, bl
jne 0x100024d1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100024ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x270], 0xffffffff
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
jmp 0x10002270
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100024ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x270], 0xffffffff
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 0x10002515
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.10004654
mov esp, ebp
pop ebp
ret