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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4853
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x101242d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x840], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x830], esi
mov word [esi], ax
lea ecx, [ebp - 0x834]
push ecx
push 0x10111db4
mov edi, 1
push edi
push ebx
push 0x10111e84
mov dword [ebp - 4], ebx
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x834], ebx
call dword [0x100d94a4]
cmp eax, ebx
jl 0x1000d5de
push str.ROOTCIMV2
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x824], ebx
call fcn.1000cb40
mov eax, dword [eax]
mov dword [ebp - 4], edi
cmp eax, ebx
je 0x1000d1d6
mov ecx, dword [eax]
jmp 0x1000d1d8
xor ecx, ecx
mov eax, dword [ebp - 0x834]
mov edx, dword [eax]
lea edi, [ebp - 0x824]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
mov eax, dword [ebp - 0x814]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x1000d243
mov esi, eax
add eax, 8
push eax
call dword [0x100d926c]
cmp eax, ebx
jne 0x1000d23d
cmp esi, ebx
je 0x1000d23d
mov eax, dword [esi]
cmp eax, ebx
je 0x1000d224
push eax
call dword [0x100d9308]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1000d234
push eax
call fcn.100b9a83
add esp, 4
push esi
call fcn.100b8b52
add esp, 4
mov esi, dword [ebp - 0x830]
cmp edi, ebx
jl 0x1000d5de
mov ecx, dword [ebp - 0x824]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [0x100d94a8]
cmp eax, ebx
jl 0x1000d5d0
push str.SELECT__FROM_Win32_BaseBoard_WHERE__SerialNumber_IS_NOT_NULL_
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x82c], ebx
call fcn.1000cab0
mov esi, eax
push 0x100d95e4
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 2
call fcn.1000cab0
mov ecx, dword [esi]
mov byte [ebp - 4], 3
cmp ecx, ebx
je 0x1000d2a7
mov ecx, dword [ecx]
jmp 0x1000d2a9
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x1000d2b3
mov edx, dword [eax]
jmp 0x1000d2b5
xor edx, edx
mov eax, dword [ebp - 0x824]
mov esi, dword [eax]
lea edi, [ebp - 0x82c]
push edi
push ebx
push 0x30
push ecx
push edx
mov edx, dword [esi + 0x50]
push eax
call edx
lea ecx, [ebp - 0x814]
mov esi, eax
call fcn.1000cbf0
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], bl
call fcn.1000cbf0
cmp esi, ebx
jl 0x1000d5bc
mov eax, dword [ebp - 0x82c]
lea edx, [ebp - 0x838]
push edx
lea edx, [ebp - 0x81c]
push edx
push 1
mov dword [ebp - 0x81c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x1000d59c
mov eax, dword [ebp - 0x81c]
lea edx, [ebp - 0x820]
push edx
push ebx
push 0x70
mov dword [ebp - 0x820], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jne 0x1000d563
mov edx, dword [ebp - 0x820]
lea ecx, [ebp - 0x83c]
push ecx
push 1
push edx
call dword [0x100d92fc]
mov ecx, dword [ebp - 0x820]
lea eax, [ebp - 0x814]
push eax
push 1
push ecx
call dword [0x100d9300]
mov eax, dword [ebp - 0x83c]
mov dword [ebp - 0x818], eax
cmp eax, dword [ebp - 0x814]
jg 0x1000d563
mov edx, dword [ebp - 0x818]
lea eax, [ebp - 0x854]
push eax
mov dword [ebp - 0x844], edx
mov dword [ebp - 0x828], ebx
call dword [0x100d9314]
mov eax, dword [ebp - 0x820]
lea ecx, [ebp - 0x828]
push ecx
lea edx, [ebp - 0x844]
push edx
push eax
call dword [0x100d9310]
mov ecx, dword [ebp - 0x828]
push ecx
call dword [0x100d9304]
push ebx
push ebx
lea ecx, [ebp - 0x854]
push ecx
mov esi, eax
mov eax, dword [ebp - 0x81c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push esi
push eax
call edx
push esi
mov esi, dword [reloc.OLEAUT32.dll_SysStringLen]
mov edi, eax
call esi
cmp edi, ebx
jl 0x1000d541
mov eax, dword [ebp - 0x828]
mov ecx, str.SerialNumber
jmp 0x1000d410
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000d436
cmp dx, bx
je 0x1000d432
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000d436
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1000d410
xor eax, eax
jmp 0x1000d43b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1000d541
push 0x7fe
lea ecx, [ebp - 0x80e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x810], ax
call fcn.100b9410
movzx eax, word [ebp - 0x854]
add eax, 0xfffffffe
add esp, 0xc
cmp eax, 9
ja case.0x1000d47b.4
movzx edx, byte [eax + 0x1000d610]
jmp dword [edx*4 + 0x1000d5fc]
mov eax, dword [ebp - 0x84c]
push eax
push 0x1011205c
push 0x3ff
push 0x3ff
lea ecx, [ebp - 0x810]
push ecx
jmp 0x1000d4f9
movsx edx, word [ebp - 0x84c]
push edx
push 0x100d95c0
jmp 0x1000d4e8
mov ecx, dword [ebp - 0x84c]
push ecx
push 0x100d95c0
push 0x3ff
push 0x3ff
lea edx, [ebp - 0x810]
push edx
jmp 0x1000d4f9
mov eax, 0x100d95b4
cmp word [ebp - 0x84c], bx
jne 0x1000d4e2
mov eax, 0x100d95a8
push eax
push 0x1011205c
push 0x3ff
push 0x3ff
lea eax, [ebp - 0x810]
push eax
call fcn.100b9b4b
add esp, 0x14
mov edi, dword [ebp - 0x830]
cmp dword [edi + 0x10], ebx
je 0x1000d51a
push 1
push 0x100d95a4
mov ecx, edi
call fcn.10005090
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000d523
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x810]
push ecx
mov ecx, edi
call fcn.10005090
mov edx, dword [ebp - 0x828]
push edx
call esi
mov eax, dword [ebp - 0x818]
inc eax
mov dword [ebp - 0x818], eax
cmp eax, dword [ebp - 0x814]
jle 0x1000d38b
mov eax, dword [ebp - 0x820]
cmp eax, ebx
je 0x1000d574
push eax
call dword [0x100d930c]
mov eax, dword [ebp - 0x82c]
mov ecx, dword [eax]
lea edx, [ebp - 0x838]
push edx
lea edx, [ebp - 0x81c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
je 0x1000d320
mov eax, dword [ebp - 0x81c]
cmp eax, ebx
je 0x1000d5ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x82c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 0x830]
mov eax, dword [ebp - 0x834]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b993a
mov esp, ebp
pop ebp
ret