Function at 0x41ff60
Capabilities:
Connect to wmi namespace via wbemlocator
Get geographical location
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x420013
lea eax, [ebp - 0x10]
push eax
push 0x4e0eb8
push 1
push esi
push 0x4e0f88
mov dword [ebp - 0x10], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42000d
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x4fcaf0
mov dword [ebp - 0xc], esi
call edi
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
push 0
push 0
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0
push esi
push eax
mov eax, dword [ecx + 0xc]
call eax
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x1c], 0
jl 0x420002
mov eax, dword [ebp - 0xc]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x42001c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4fcb08
call edi
push str.SELECT__FROM_Win32_OperatingSystem
mov esi, eax
call edi
lea edx, [ebp - 0x14]
push edx
push 0
mov edi, eax
mov eax, dword [ebp - 0xc]
push 0x30
push edi
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push esi
push eax
mov eax, dword [ecx + 0x50]
call eax
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x1c], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1c], 0
jl 0x41fff7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x4202e7
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 8]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x20], 0
je 0x4202e4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push str.Caption
push eax
mov eax, dword [ecx + 0x10]
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x4200c2
mov edx, dword [ebp - 0x2c]
push ebx
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.Version
push eax
call edx
test eax, eax
js 0x4200f2
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x1c]
push eax
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.CodeSet
push eax
call edx
test eax, eax
js 0x420122
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x38]
push eax
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.CountryCode
push eax
call edx
test eax, eax
js 0x420152
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x54]
push eax
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.FreePhysicalMemory
push eax
call edx
test eax, eax
js 0x420182
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x70]
push eax
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.FreeVirtualMemory
push eax
call edx
test eax, eax
js 0x4201b5
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x8c]
push eax
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.Locale
push eax
call edx
test eax, eax
js 0x4201e8
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0xa8]
push eax
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.OSArchitecture
push eax
call edx
test eax, eax
js 0x42021b
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0xc4]
push eax
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.OSLanguage
push eax
call edx
test eax, eax
js 0x420248
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebx + 0xe0], eax
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.ServicePackMajorVersion
push eax
call edx
test eax, eax
js 0x420277
mov ax, word [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
mov word [ebx + 0xe4], ax
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.ServicePackMinorVersion
push eax
call edx
test eax, eax
js 0x4202a6
mov ax, word [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
mov word [ebx + 0xe6], ax
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.Status
push eax
call edx
test eax, eax
js 0x4202d9
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0xe8]
push eax
call fcn.0041c3e0
lea ecx, [ebp - 0x34]
push ecx
call esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x58
call esi
test eax, eax
setne al
push 0x4a
mov byte [ebx + 0x104], al
call esi
test eax, eax
setne cl
push 0x49
mov byte [ebx + 0x105], cl
call esi
test eax, eax
setne dl
lea esi, [ebp - 0x1c]
mov byte [ebx + 0x106], dl
mov byte [ebx + 0x107], 0
call fcn.00431700
test al, al
je 0x42036c
mov eax, dword [ebp - 0x1c]
mov cx, word [ebp - 0x18]
mov dword [ebx + 0x108], eax
mov byte [ebx + 0x107], 1
mov word [ebx + 0x10c], cx
lea edi, [ebx + 0x110]
mov byte [ebx + 0x10f], 0
call fcn.0041fc10
test al, al
je 0x420389
mov byte [ebx + 0x10f], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret