Function at 0x41c580
Capabilities:
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x462d20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4770d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.00423c34
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c5c3
push 0x80004005
call fcn.00401df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x50], ebx
call fcn.00423c34
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c5f1
push 0x80004005
call fcn.00401df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
push ebx
push ebx
mov byte [esp + 0x58], 1
call dword [0x46555c]
mov esi, eax
cmp esi, ebx
jge 0x41c6c2
push str.Failed_to_initialize_COM_library._Error_code__0x
push 0x47ced0
call fcn.00410400
add esp, 8
cmp eax, ebx
jne 0x41c632
xor edx, edx
jmp 0x41c639
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
add edx, eax
mov ecx, dword [edx + 0x10]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + 0x10], ecx
push esi
mov ecx, eax
call fcn.00410610
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00410ca0
mov ecx, esi
call fcn.0040f540
lea eax, [edi - 0x10]
mov byte [esp + 0x50], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c685
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c6a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [0x465558]
mov esi, eax
cmp esi, ebx
jge 0x41c731
push str.Failed_to_initialize_security._Error_code__0x
push 0x47ced0
call fcn.00410400
add esp, 8
cmp eax, ebx
jne 0x41c6f3
xor edx, edx
jmp 0x41c6fa
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
add edx, eax
mov ecx, dword [edx + 0x10]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + 0x10], ecx
push esi
mov ecx, eax
call fcn.00410610
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00410ca0
mov ecx, esi
call fcn.0040f540
call dword [0x465554]
jmp 0x41c665
lea ecx, [esp + 0x1c]
push ecx
push 0x46b5b8
push 1
push ebx
push 0x46b688
mov dword [esp + 0x30], ebx
call dword [0x465560]
mov esi, eax
cmp esi, ebx
jge 0x41c7b9
push str._Err_code__0x
push str.Failed_to_create_IWbemLocator_object.
push 0x47ced0
call fcn.00410400
add esp, 8
push eax
call fcn.00410400
add esp, 8
cmp eax, ebx
jne 0x41c77b
xor edx, edx
jmp 0x41c782
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, eax
mov ecx, dword [edx + 0x10]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + 0x10], ecx
push esi
mov ecx, eax
call fcn.00410610
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00410ca0
mov ecx, esi
call fcn.0040f540
call dword [0x465554]
jmp 0x41c665
push str.ROOTCIMV2
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.00402980
mov eax, dword [eax]
mov byte [esp + 0x50], 2
cmp eax, ebx
je 0x41c7da
mov ecx, dword [eax]
jmp 0x41c7dc
xor ecx, ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
lea esi, [esp + 0x18]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x50], 1
call fcn.00406690
cmp esi, ebx
jge 0x41c869
push esi
push 0x402580
push str.Could_not_connect._Error_code__0x
push 0x47ced0
call fcn.00410400
add esp, 8
mov ecx, eax
call fcn.00402250
mov ecx, eax
call fcn.00410610
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00410ca0
mov ecx, esi
call fcn.0040f540
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [0x465554]
lea ecx, [esp + 0x20]
call fcn.00403af0
lea ecx, [esp + 0x14]
call fcn.00403af0
jmp 0x41c6a9
push str.Connected_to_ROOTCIMV2_WMI_namespace
push 0x47ced0
call fcn.00410400
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00410ca0
mov ecx, esi
call fcn.0040f540
mov eax, dword [esp + 0x18]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [0x46554c]
cmp eax, ebx
jge 0x41c913
push eax
push 0x402580
push str.Could_not_set_proxy_blanket._Error_code__0x
push 0x47ced0
call fcn.00410400
add esp, 8
mov ecx, eax
call fcn.00402250
mov ecx, eax
call fcn.00410610
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00410ca0
mov ecx, esi
call fcn.0040f540
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [0x465554]
lea ecx, [esp + 0x20]
call fcn.00403af0
lea ecx, [esp + 0x14]
call fcn.00403af0
jmp 0x41c6a9
push str.SELECT__FROM_Win32_DiskDrive
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], ebx
call fcn.004028f0
mov esi, eax
push 0x4659e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 3
call fcn.004028f0
mov ecx, dword [esi]
mov byte [esp + 0x50], 4
cmp ecx, ebx
je 0x41c949
mov ecx, dword [ecx]
jmp 0x41c94b
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x41c955
mov edx, dword [eax]
jmp 0x41c957
xor edx, edx
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
lea edi, [esp + 0x24]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00406690
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 1
call fcn.00406690
cmp esi, ebx
jge 0x41c9ad
push esi
push 0x402580
push str._Error_code__0x
push str.Query_for_operating_system_name_failed.
push 0x47ced0
call fcn.00410400
add esp, 8
push eax
jmp 0x41c8b6
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x2c]
push edx
push 1
mov dword [esp + 0x40], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
push ebx
push 0x466208
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406300
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], ebx
jl 0x41ca41
push 0x466204
push esi
call fcn.0043250d
add esp, 8
cmp eax, ebx
je 0x41ca41
sub eax, esi
cmp eax, 0xffffffff
je 0x41ca41
dec eax
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.00405840
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 5
call fcn.004063c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 1
call fcn.00403af0
mov esi, dword [0x46532c]
lea eax, [esp + 0x38]
push eax
call esi
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
push ebx
push str.Signature
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push 0x4661ec
push edx
call fcn.00406670
add esp, 0xc
lea eax, [esp + 0x38]
push eax
call esi
push 0x46613c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00406900
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x68], 6
call fcn.00406840
add esp, 0x18
push eax
mov ecx, 0x478f74
mov byte [esp + 0x54], 7
call fcn.004063c0
lea ecx, [esp + 0x30]
call fcn.00403af0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 1
call fcn.00403af0
push 0x46613c
push 0x4661e8
mov ecx, 0x478f74
call fcn.00405560
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [0x465554]
call fcn.00435196
lea ecx, [esp + 0x20]
call fcn.00403af0
lea ecx, [esp + 0x14]
call fcn.00403af0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret