Function at 0x401000
Capabilities:
Connect to wmi namespace via wbemlocator
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1b0
mov esi, dword [ebp + 8]
cmp esi, 2
jl 0x40124e
test byte [section..data], 1
je 0x401037
sub esp, 0x10
mov dword [esp + 0xc], str.stub:
call dbg.wine_dbg_log
add esp, 0x10
xor ecx, ecx
movzx eax, byte [section..data]
jmp 0x401075
mov eax, 0x403a1a
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x403a04
call dbg.wine_dbg_log
add esp, 0x14
movzx eax, byte [section..data]
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, esi
je 0x401318
test al, 1
je 0x40106c
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + ecx*4]
test esi, esi
mov dword [esp + 0x10], ecx
je 0x401042
cmp esi, 0xffff
ja 0x4010a3
movzx eax, si
sub esp, 8
mov dword [esp + 4], eax
call dbg.wine_dbg_sprintf
add esp, 8
jmp 0x401047
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
mov eax, str._invalid_
test ecx, ecx
jne 0x401047
mov ecx, 0xffffffff
mov edx, 1
nop word cs:[eax + eax]
mov eax, edx
cmp word [esi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
lea edx, [edx + 1]
jne 0x4010d0
mov word [esp + 0x80], 0x224c
test ecx, ecx
je 0x401224
mov ecx, 2
lea edx, [esp + 0x82]
nop
dec eax
movzx ebx, word [esi]
lea edi, [ebx - 9]
cmp edi, 0x19
ja case.default.0x40110c
jmp dword [edi*4 + 0x403020]
mov byte [edx], 0x5c
lea edx, [esp + 0x80]
mov byte [ecx + edx + 1], 0x74
add ecx, 2
jmp 0x4011f0
cmp ebx, 0x5c
jne case.0x40110c.11
mov byte [edx], 0x5c
lea edx, [esp + 0x80]
mov byte [ecx + edx + 1], 0x5c
add ecx, 2
jmp 0x4011f0
lea edi, [ebx - 0x7f]
cmp di, 0xffa0
ja 0x4011e8
mov byte [edx], 0x5c
mov edx, ebx
shr edx, 0xc
movzx edx, byte [edx + str.0123456789abcdef_null_]
lea edi, [esp + 0x80]
mov byte [ecx + edi + 1], dl
mov edx, ebx
shr edx, 8
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdef_null_]
mov byte [ecx + edi + 2], dl
mov edx, ebx
shr edx, 4
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdef_null_]
mov byte [ecx + edi + 3], dl
and ebx, 0xf
movzx edx, byte [ebx + str.0123456789abcdef_null_]
mov byte [ecx + edi + 4], dl
add ecx, 5
jmp 0x4011f0
mov byte [edx], 0x5c
lea edx, [esp + 0x80]
mov byte [ecx + edx + 1], 0x6e
add ecx, 2
jmp 0x4011f0
mov byte [edx], 0x5c
lea edx, [esp + 0x80]
mov byte [ecx + edx + 1], 0x72
add ecx, 2
jmp 0x4011f0
mov byte [edx], 0x5c
lea edx, [esp + 0x80]
mov byte [ecx + edx + 1], 0x22
add ecx, 2
jmp 0x4011f0
inc ecx
mov byte [edx], bl
nop dword [eax + eax]
lea edx, [esp + ecx]
add edx, 0x80
cmp eax, 2
jl 0x40120d
add esi, 2
cmp ecx, 0x123
jl 0x401100
mov byte [edx], 0x22
cmp eax, 3
jl 0x401235
mov word [edx + 1], 0x2e2e
mov byte [edx + 3], 0x2e
add edx, 4
jmp 0x401236
mov byte [esp + 0x82], 0x22
lea edx, [esp + 0x83]
jmp 0x401236
inc edx
mov byte [edx], 0
lea eax, [esp + 0x80]
push eax
call dbg.__wine_dbg_strdup
add esp, 4
jmp 0x401047
mov dword [esp + 0x14], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 0x24
movaps xmm0, xmmword [section..rdata]
movups xmmword [esp + 0x10], xmm0
movaps xmm0, xmmword [0x403010]
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0x1c]
push eax
push 0x4038b8
push 1
push 0
push 0x403898
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40132f
push str.ROOTCIMV2
call dword [sym.imp.oleaut32.dll_SysAllocString]
test eax, eax
je 0x4012f8
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
sub esp, 0x24
lea edx, [esp + 0x38]
mov dword [esp + 0x20], edx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [ecx + 0xc]
mov edi, eax
push esi
call dword [sym.imp.oleaut32.dll_SysFreeString]
test edi, edi
je 0x401339
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401306
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40132f
test al, 1
je 0x40132f
sub esp, 0x10
mov dword [esp + 0xc], 0x403a08
call dbg.wine_dbg_log
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
mov esi, 0xfffffda8
push dword [esi + str.Host_Name]
call dword [sym.imp.ucrtbase.dll_wcslen]
add esp, 4
cmp eax, edi
cmova edi, eax
add esi, 0x14
jne 0x401340
inc edi
mov dword [esp + 8], edi
xor eax, eax
mov esi, 0x403a48
jmp 0x40138f
push dword [esp + 8]
push dword [esi + 0x10]
push edi
call dword [esi + 0xc]
add esp, 0xc
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x14
cmp eax, 0x1e
je 0x4012f8
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], 0
mov ecx, 0x30204010
bt ecx, eax
mov dword [esp + 0x10], eax
jb 0x4014f0
push dword [esi + 4]
call dword [sym.imp.oleaut32.dll_SysAllocString]
test eax, eax
je 0x40137e
mov ebx, eax
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push ebx
push edi
call dword [eax + 0x18]
mov edi, eax
push ebx
call dword [sym.imp.oleaut32.dll_SysFreeString]
test edi, edi
js 0x40137e
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x38]
push edx
push 0
push dword [esi + 8]
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x401542
mov eax, dword [esi + 0x10]
cmp eax, 3
je 0x401551
cmp eax, 2
je 0x4015c8
cmp eax, 1
jne 0x4016b7
xorps xmm0, xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x20], xmm0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2e]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x32]
push eax
lea eax, [esp + 0x32]
push eax
lea edi, [esp + 0x34]
push edi
push str._04u_02u_02u_02u_02u_02u
push dword [esp + 0x54]
call dbg.swscanf
add esp, 0x20
push 0x20
lea ebx, [esp + 0x84]
push ebx
push 0
push edi
push 0
push 0x800
call dword [sym.imp.kernel32.dll_GetDateFormatW]
push 0x20
lea ebx, [esp + 0x44]
push ebx
push 0
push edi
push 0
push 0x800
call dword [sym.imp.kernel32.dll_GetTimeFormatW]
push 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0xc], eax
mov edi, dword [esi]
push edi
call dword [sym.imp.ucrtbase.dll_wcslen]
add esp, 4
mov ecx, dword [esp + 8]
sub ecx, eax
push ebx
lea eax, [esp + 0x84]
push eax
push str.__s__02u_:__s
push ecx
push edi
push str._s:_s__s___s_n
jmp 0x4016a9
mov ecx, 0x30204000
bt ecx, eax
jb 0x401370
mov edi, dword [esi]
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
push 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
mov ebx, eax
push edi
call dword [sym.imp.ucrtbase.dll_wcslen]
add esp, 4
mov ecx, dword [esp + 8]
sub ecx, eax
push dword [esp + 0xc]
push str.__s__02u_:__s
push ecx
push edi
push str._s:_s__s_n
push ebx
call dbg.fwprintf
add esp, 0x18
jmp 0x40137e
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40137e
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x80]
push eax
push str._I64u
push dword [esp + 0x40]
call dbg.swscanf
add esp, 0xc
push 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
mov ebx, eax
mov edi, dword [esi]
push edi
call dword [sym.imp.ucrtbase.dll_wcslen]
add esp, 4
mov ecx, dword [esp + 8]
sub ecx, eax
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
shrd eax, edx, 0xa
shr edx, 0xa
push edx
push eax
push str.__s__02u_:__s
push ecx
push edi
push str._s:_s__I64u_MB_n
push ebx
jmp 0x4016ad
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x11a], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
lea eax, [esp + 0x20]
push eax
push 0x4047d4
push dword [esp + 0x40]
call dbg.swscanf
add esp, 0xc
push 0
push 0x20
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.kernel32.dll_LCIDToLocaleName]
push 0x55
lea ebx, [esp + 0x84]
push ebx
push 0x72
push dword [esp + 0x2c]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0xc], eax
mov edi, dword [esi]
push edi
call dword [sym.imp.ucrtbase.dll_wcslen]
add esp, 4
mov ecx, dword [esp + 8]
sub ecx, eax
push ebx
lea eax, [esp + 0x44]
push eax
push str.__s__02u_:__s
push ecx
push edi
push str._s:_s__s__s_n
push dword [esp + 0x24]
call dbg.fwprintf
add esp, 0x1c
jmp 0x4016ef
push 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
mov ebx, eax
mov edi, dword [esi]
push edi
call dword [sym.imp.ucrtbase.dll_wcslen]
add esp, 4
mov ecx, dword [esp + 8]
sub ecx, eax
push dword [esp + 0x38]
push str.__s__02u_:__s
push ecx
push edi
push str._s:_s__s_n
push ebx
call dbg.fwprintf
add esp, 0x18
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.oleaut32.dll_VariantClear]
jmp 0x40137e