Function at 0x10099a81
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101042d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [ebp - 0x14], eax
cmp ecx, 0xffffffff
je 0x10099bc0
call fcn.100290c0
mov edi, eax
test edi, edi
je 0x10099bba
cmp edi, 0xffffffff
jne 0x10099c2a
xor eax, eax
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x10099e01
add edi, 0x50
xor eax, eax
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
mov dword [ebp - 0x14], eax
cmp ecx, 0xffffffff
je 0x10099c43
call fcn.100290c0
mov edi, eax
test edi, edi
je 0x10099c3d
cmp edi, 0xffffffff
jne 0x10099cad
xor eax, eax
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x10099e01
lea eax, [ebp - 0x10]
xor ecx, ecx
mov dword [edi + 0x34c], eax
lea eax, [ebx + 0x80]
mov edi, dword [ebp - 0x18]
mov dword [edi], ebx
lea esi, [edi + 4]
mov dword [esi], eax
test eax, eax
je 0x10099b84
cmp word [eax], cx
je 0x10099b84
push esi
push 0x16
pop edx
mov ecx, 0x100035b0
call fcn.10099a17
pop ecx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [edi]
test eax, eax
je 0x10099d02
cmp word [eax], cx
je 0x10099d02
mov eax, dword [esi]
test eax, eax
je 0x10099cc0
cmp word [eax], cx
je 0x10099cc0
lea ecx, [ebp - 0x10]
call fcn.10098e1e
jmp 0x10099cc8
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x10099ade
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [0x101042e4]
test edi, edi
jne 0x10099bff
xor edx, edx
call fcn.1003b000
xor ecx, ecx
push ecx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10099ade
mov edx, edi
call fcn.1003b000
test eax, eax
jne 0x10099c1a
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push edi
jmp 0x10099bf4
mov ecx, edi
call fcn.1003e545
xor ecx, ecx
push ecx
call sym.ucrtbase.dll__free_base
pop ecx
imul eax, dword [ebp - 0x14], 0x364
add eax, edi
mov dword [ebp - 0x14], eax
mov edi, eax
jmp 0x10099ae2
mov ecx, dword [0x101042e4]
or edx, 0xffffffff
call fcn.1003b000
test eax, eax
je 0x10099b3c
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [0x101042e4]
test edi, edi
jne 0x10099c82
xor edx, edx
call fcn.1003b000
xor eax, eax
push eax
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x10099b3c
mov edx, edi
call fcn.1003b000
test eax, eax
jne 0x10099c9d
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push edi
jmp 0x10099c77
mov ecx, edi
call fcn.1003e545
xor eax, eax
push eax
call sym.ucrtbase.dll__free_base
pop ecx
imul eax, dword [ebp - 0x14], 0x364
add eax, edi
mov dword [ebp - 0x14], eax
mov edi, eax
jmp 0x10099b40
lea ecx, [ebp - 0x10]
call fcn.10098f7b
cmp dword [ebp - 0x10], 0
jne 0x10099d34
push edi
push 0x40
pop edx
mov ecx, 0x10001810
call fcn.10099a17
pop ecx
test al, al
je 0x10099d2a
mov eax, dword [esi]
test eax, eax
je 0x10099cf8
xor ecx, ecx
cmp word [eax], cx
je 0x10099cf8
lea ecx, [ebp - 0x10]
call fcn.10098e1e
jmp 0x10099d2a
lea ecx, [ebp - 0x10]
call fcn.10098f7b
jmp 0x10099d2a
mov eax, dword [esi]
test eax, eax
je 0x10099d17
cmp word [eax], cx
je 0x10099d17
lea ecx, [ebp - 0x10]
call fcn.10098d12
jmp 0x10099d2a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x10099dfd
lea ecx, [ebx + 0x100]
neg ebx
lea edx, [ebp - 0x10]
sbb ebx, ebx
and ecx, ebx
call fcn.100997ab
mov esi, eax
test esi, esi
je 0x10099dfd
movzx ecx, si
push ecx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_IsValidCodePage]
test eax, eax
je 0x10099dfd
push 1
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_IsValidLocale]
test eax, eax
je 0x10099dfd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10099d80
mov dword [eax], esi
push ecx
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [edi + 0x250]
call fcn.100980eb
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10099deb
push ecx
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ebx + 0x120]
call fcn.100980eb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x10099dfd
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x10099dfd
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call sym.ucrtbase.dll__itow_s
add esp, 0x10
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068820
leave
ret
xor eax, eax
jmp 0x10099dee
call sym.ucrtbase.dll_abort
int3