Function at 0x10003ed0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x30
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edi, eax
test eax, eax
je 0x1000415a
mov dword [eax + 0x2c], 0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [edi + 8], eax
test eax, eax
je 0x100049b7
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x10016844
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x10016834
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x10004740
mov eax, dword [edi]
lea ecx, [edi + 4]
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0x1c
test eax, eax
js 0x10004780
mov eax, dword [edi + 4]
lea ecx, [edi + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.STRINGS
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x18
test eax, eax
js 0x100046a0
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], 0xdeadbeef
lea ecx, [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEM
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x18
test eax, eax
js 0x100040f0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
lea esi, [ebp - 0x14]
mov edx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
test byte [0x10013018], 8
jne 0x10004968
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x20
mov dword [ebp - 0x24], eax
call eax
mov esi, eax
mov eax, dword [ebp - 0x1c]
test esi, esi
je 0x100049a9
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x20], edi
mov edi, esi
lea esi, [esi]
lea edi, [edi]
mov edx, dword [eax]
lea ebx, [ebp - 0x14]
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
test eax, eax
jne 0x10004708
movzx edx, word [ebp - 0xe]
cmp edx, dword [ebp - 0x28]
ja 0x100046e0
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x14]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [ecx + 0xc]
sub esp, 0x10
test eax, eax
jne 0x10004708
movzx eax, byte [0x10013018]
movzx edx, word [ebp - 0x10]
and eax, 8
cmp dx, 0xf
ja case.0x100040e6.1
movzx ecx, dx
jmp dword [ecx*4 + 0x100152cc]
test byte [0x10013018], 4
je 0x10004150
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_open_SYSTEM_stream:__08lx_n
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
test byte [0x10013018], 4
je 0x10004150
mov dword [esp + 0xc], str.Could_not_read_SYSTEM_n
mov dword [esp + 8], str.OpenCHM
mov dword [esp + 4], 0x10013018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
nop
mov dword [esp], edi
call sym._CloseCHM
mov edi, eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test al, al
jne 0x10004930
mov eax, dword [ebp - 0x1c]
jmp 0x10004070
test al, al
je 0x10004170
mov eax, dword [edi]
mov dword [esp + 0xc], str.Check_sum:__lx_n
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004170
test al, al
je 0x10004170
mov eax, dword [edi]
mov dword [esp + 0xc], str.Number_of_info_types:__ld_n
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004170
test al, al
je 0x10004170
mov eax, dword [edi]
mov dword [esp + 0xc], str.Time_is__08lx_n
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004170
test al, al
je 0x10004170
movzx edx, word [ebp - 0xe]
mov eax, edi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], str.Version_is__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004170
test al, al
jne 0x100048f0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
movzx esi, word [ebp - 0xe]
test esi, esi
je 0x1000429d
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_memchr]
mov edx, eax
sub edx, edi
test eax, eax
cmovne esi, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea ecx, [eax + 1]
sub esp, 0x18
mov eax, dword [ebp - 0x24]
lea edx, [ecx + ecx]
mov dword [ebp - 0x30], ecx
mov dword [esp], edx
mov dword [ebp - 0x2c], edx
call eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0xc], esi
mov ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
sub esp, 0x18
mov word [ebx + edx - 2], cx
mov dword [eax + 0x18], ebx
jmp 0x10004170
movzx ebx, word [ebp - 0xe]
mov esi, ebx
test al, al
jne 0x100048b0
test ebx, ebx
je 0x1000435a
mov dword [esp + 8], ebx
mov esi, ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_memchr]
mov edx, eax
sub edx, edi
test eax, eax
cmovne esi, edx
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x34], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov ecx, dword [ebp - 0x24]
add eax, 1
sub esp, 0x18
lea edx, [eax + eax]
mov dword [ebp - 0x2c], eax
mov dword [esp], edx
mov dword [ebp - 0x30], edx
call ecx
mov dword [esp + 0xc], esi
mov ecx, dword [ebp - 0x34]
xor esi, esi
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
sub esp, 0x18
mov word [ebx + edx - 2], si
mov dword [eax + 0x1c], ebx
jmp 0x10004170
mov edx, dword [edi]
test al, al
jne 0x10004880
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0x20001004
lea eax, [ebx + 0x2c]
mov dword [esp], edx
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
sub esp, 0x10
test eax, eax
jne 0x10004170
mov dword [ebx + 0x2c], 0
jmp 0x10004170
test al, al
jne 0x10004840
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
movzx esi, word [ebp - 0xe]
test esi, esi
je 0x1000446d
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_memchr]
mov edx, eax
sub edx, edi
test eax, eax
cmovne esi, edx
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x34], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov ebx, dword [ebp - 0x24]
add eax, 1
sub esp, 0x18
lea edx, [eax + eax]
mov dword [ebp - 0x2c], eax
mov dword [esp], edx
mov dword [ebp - 0x30], edx
call ebx
mov dword [esp + 0xc], esi
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov edx, dword [ebp - 0x30]
xor eax, eax
sub esp, 0x18
mov word [ebx + edx - 2], ax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], ebx
jmp 0x10004170
test al, al
jne 0x10004800
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
movzx esi, word [ebp - 0xe]
test esi, esi
je 0x1000453d
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_memchr]
mov edx, eax
sub edx, edi
test eax, eax
cmovne esi, edx
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x34], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov ecx, dword [ebp - 0x24]
add eax, 1
sub esp, 0x18
lea edx, [eax + eax]
mov dword [ebp - 0x2c], eax
mov dword [esp], edx
mov dword [ebp - 0x30], edx
call ecx
mov dword [esp + 0xc], esi
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov edx, dword [ebp - 0x30]
xor eax, eax
sub esp, 0x18
mov word [ebx + edx - 2], ax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x20], ebx
jmp 0x10004170
test al, al
jne 0x100047c0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
movzx esi, word [ebp - 0xe]
test esi, esi
je 0x1000460d
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_memchr]
mov edx, eax
sub edx, edi
test eax, eax
cmovne esi, edx
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x34], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov ecx, dword [ebp - 0x24]
add eax, 1
sub esp, 0x18
lea edx, [eax + eax]
mov dword [ebp - 0x2c], eax
mov dword [esp], edx
mov dword [ebp - 0x30], edx
call ecx
mov dword [esp + 0xc], esi
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov edx, dword [ebp - 0x30]
xor eax, eax
sub esp, 0x18
mov word [ebx + edx - 2], ax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x28], ebx
jmp 0x10004170
test byte [0x10013018], 4
je 0x10003fc7
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_open_STRINGS_stream:__08lx_n
mov dword [esp + 8], str.OpenCHM
mov dword [esp + 4], 0x10013018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10003fc7
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x10004998
movzx esi, word [ebp - 0xe]
mov edi, eax
mov dword [ebp - 0x28], esi
mov edx, esi
jmp 0x100040a6
mov esi, edi
mov ebx, eax
mov edi, dword [ebp - 0x20]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test ebx, ebx
js 0x10004121
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10013018], 4
je 0x10004150
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_create_ITStorage:__08lx_n
mov dword [esp + 8], str.OpenCHM
mov dword [esp + 4], 0x10013018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10004150
test byte [0x10013018], 4
je 0x10004150
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_open_storage:__08lx_n
mov dword [esp + 8], str.OpenCHM
mov dword [esp + 4], 0x10013018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10004150
movzx edx, word [ebp - 0xe]
mov eax, edi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], str.TOC_is__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100045d8
movzx edx, word [ebp - 0xe]
mov eax, edi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], str.Default_topic_is__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004508
movzx edx, word [ebp - 0xe]
mov eax, edi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], str.Title_is__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004438
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Locale_is:__ld_n
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [edi]
jmp 0x100043f2
mov edx, ebx
mov eax, edi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], str.Window_name_is__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx ebx, word [ebp - 0xe]
mov esi, ebx
jmp 0x10004336
movzx edx, word [ebp - 0xe]
mov eax, edi
call sym._wine_dbgstr_an
mov dword [esp + 0xc], str.Compiled_file_is__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004268
movzx eax, word [ebp - 0xe]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.unhandled_code__x__size__x_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10004170
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], str.version_is__lx_n
mov dword [esp + 8], str.ReadChmSystem
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10013018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000403c
mov esi, edi
mov edi, dword [ebp - 0x20]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push eax
jmp 0x10004121
mov dword [esp], edi
xor edi, edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000415a