Function at 0x436550
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a0a1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x559410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SELECT__FROM_Win32_DiskDrive_WHERE__SerialNumber_IS_NOT_NULL__AND__InterfaceType____USB_
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
call fcn.00436c70
mov esi, eax
push 0x5258f4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00436c70
mov ecx, dword [esi]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4365b0
mov esi, dword [ecx]
jmp 0x4365b2
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4365bc
mov edx, dword [eax]
jmp 0x4365be
xor edx, edx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x10]
push edi
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov esi, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp + 8], eax
test esi, esi
je 0x43662b
lea ecx, [esi + 8]
push ecx
call ebx
test eax, eax
jne 0x436624
test esi, esi
je 0x436624
mov eax, dword [esi]
test eax, eax
je 0x436604
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x43661b
push eax
call fcn.00406890
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.00406890
add esp, 4
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x436676
lea eax, [esi + 8]
push eax
call ebx
test eax, eax
jne 0x436676
test esi, esi
je 0x436676
mov eax, dword [esi]
test eax, eax
je 0x436656
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x43666d
push eax
call fcn.00406890
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.00406890
add esp, 4
cmp dword [ebp + 8], 0
jl 0x436853
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x43684d
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ebx, [ebx]
lea edx, [ebp + 0xc]
mov dword [ebp + 8], 0
push edx
lea edx, [ebp + 8]
mov dword [ebp + 0xc], 0
mov eax, dword [ecx]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp + 0xc], 0
je 0x43684a
cmp dword [esi + 0x10], 0
jne 0x43684a
lea eax, [ebp - 0x28]
push eax
call edi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x5258f8
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x20]
call fcn.004fd890
mov edx, eax
cmp byte [edx], 0
jne 0x436705
xor ecx, ecx
jmp 0x43671f
mov ecx, edx
lea edi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436710
sub ecx, edi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
push ecx
push edx
mov ecx, esi
call fcn.00405e90
lea eax, [ebp - 0x28]
push eax
call ebx
cmp dword [esi + 0x10], 0
je 0x43682e
lea eax, [ebp - 0x28]
push eax
call edi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.PNPDeviceID
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x20]
call fcn.004fd890
mov edx, eax
cmp byte [edx], 0
jne 0x436769
xor ecx, ecx
jmp 0x43677f
mov ecx, edx
lea edi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436770
sub ecx, edi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
push ecx
push edx
mov ecx, esi
call fcn.00405e90
lea eax, [ebp - 0x28]
push eax
call ebx
lea eax, [ebp - 0x28]
push eax
call edi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Model
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x20]
call fcn.004fd890
mov edi, eax
cmp byte [edi], 0
jne 0x4367bf
xor ecx, ecx
jmp 0x4367cd
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4367c4
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00405e90
lea eax, [ebp - 0x28]
push eax
call ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.SystemName
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x20]
call fcn.004fd890
mov edx, eax
cmp byte [edx], 0
jne 0x436811
xor ecx, ecx
jmp 0x43681f
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436816
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00405e90
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
test ecx, ecx
jne 0x4366a0
jmp 0x43684d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
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