Function at 0x415980
Capabilities:
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x45a4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e0b0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.0041cf22
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4159c3
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.0041cf22
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4159f1
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 [0x45d554]
mov esi, eax
cmp esi, ebx
jge 0x415ac2
push str.Failed_to_initialize_COM_library._Error_code__0x
push 0x473ce0
call fcn.0040f650
add esp, 8
cmp eax, ebx
jne 0x415a32
xor edx, edx
jmp 0x415a39
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.0040f860
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040fef0
mov ecx, esi
call fcn.0040e790
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 0x415a85
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 0x415aa9
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 [0x45d550]
mov esi, eax
cmp esi, ebx
jge 0x415b31
push str.Failed_to_initialize_security._Error_code__0x
push 0x473ce0
call fcn.0040f650
add esp, 8
cmp eax, ebx
jne 0x415af3
xor edx, edx
jmp 0x415afa
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.0040f860
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040fef0
mov ecx, esi
call fcn.0040e790
call dword [0x45d54c]
jmp 0x415a65
lea ecx, [esp + 0x1c]
push ecx
push 0x463400
push 1
push ebx
push 0x4634d0
mov dword [esp + 0x30], ebx
call dword [0x45d55c]
mov esi, eax
cmp esi, ebx
jge 0x415bb9
push str._Err_code__0x
push str.Failed_to_create_IWbemLocator_object.
push 0x473ce0
call fcn.0040f650
add esp, 8
push eax
call fcn.0040f650
add esp, 8
cmp eax, ebx
jne 0x415b7b
xor edx, edx
jmp 0x415b82
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.0040f860
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040fef0
mov ecx, esi
call fcn.0040e790
call dword [0x45d54c]
jmp 0x415a65
push str.ROOTCIMV2
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.00402850
mov eax, dword [eax]
mov byte [esp + 0x50], 2
cmp eax, ebx
je 0x415bda
mov ecx, dword [eax]
jmp 0x415bdc
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.00405e60
cmp esi, ebx
jge 0x415c69
push esi
push 0x402520
push str.Could_not_connect._Error_code__0x
push 0x473ce0
call fcn.0040f650
add esp, 8
mov ecx, eax
call fcn.00402200
mov ecx, eax
call fcn.0040f860
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040fef0
mov ecx, esi
call fcn.0040e790
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [0x45d54c]
lea ecx, [esp + 0x20]
call fcn.00403780
lea ecx, [esp + 0x14]
call fcn.00403780
jmp 0x415aa9
push str.Connected_to_ROOTCIMV2_WMI_namespace
push 0x473ce0
call fcn.0040f650
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040fef0
mov ecx, esi
call fcn.0040e790
mov eax, dword [esp + 0x18]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [0x45d548]
cmp eax, ebx
jge 0x415d13
push eax
push 0x402520
push str.Could_not_set_proxy_blanket._Error_code__0x
push 0x473ce0
call fcn.0040f650
add esp, 8
mov ecx, eax
call fcn.00402200
mov ecx, eax
call fcn.0040f860
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040fef0
mov ecx, esi
call fcn.0040e790
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 [0x45d54c]
lea ecx, [esp + 0x20]
call fcn.00403780
lea ecx, [esp + 0x14]
call fcn.00403780
jmp 0x415aa9
push str.SELECT__FROM_Win32_DiskDrive
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], ebx
call fcn.004027c0
mov esi, eax
push 0x45e120
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 3
call fcn.004027c0
mov ecx, dword [esi]
mov byte [esp + 0x50], 4
cmp ecx, ebx
je 0x415d49
mov ecx, dword [ecx]
jmp 0x415d4b
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x415d55
mov edx, dword [eax]
jmp 0x415d57
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.00405e60
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 1
call fcn.00405e60
cmp esi, ebx
jge 0x415dad
push esi
push 0x402520
push str._Error_code__0x
push str.Query_for_operating_system_name_failed.
push 0x473ce0
call fcn.0040f650
add esp, 8
push eax
jmp 0x415cb6
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 0x45e0d8
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405ad0
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], ebx
jl 0x415e41
push 0x45e0d4
push esi
call fcn.0042b718
add esp, 8
cmp eax, ebx
je 0x415e41
sub eax, esi
cmp eax, 0xffffffff
je 0x415e41
dec eax
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404fc0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 5
call fcn.00405b90
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 1
call fcn.00403780
mov esi, dword [0x45d328]
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 0x45e0bc
push edx
call fcn.00405e40
add esp, 0xc
lea eax, [esp + 0x38]
push eax
call esi
push 0x45e048
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00405f70
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x68], 6
call fcn.00405eb0
add esp, 0x18
push eax
mov ecx, 0x46fe8c
mov byte [esp + 0x54], 7
call fcn.00405b90
lea ecx, [esp + 0x30]
call fcn.00403780
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 1
call fcn.00403780
push 0x45e048
push 0x45e0b8
mov ecx, 0x46fe8c
call fcn.00404ce0
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 [0x45d54c]
call fcn.0042e407
lea ecx, [esp + 0x20]
call fcn.00403780
lea ecx, [esp + 0x14]
call fcn.00403780
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