Function at 0x10096a21
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x100b7c0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x20]
xor esi, esi
and dword [eax], esi
mov dword [ebp - 0x174], eax
mov eax, dword [ebp + 0xc]
and dword [edi], esi
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x17c], edx
test ecx, ecx
je 0x10096a6e
test eax, eax
je 0x10096a70
xor edx, edx
mov word [ecx], dx
test eax, eax
jns 0x10096a7f
mov dword [edi], 0x80004005
xor eax, eax
jmp 0x10096f7f
push dword [ebx]
call fcn.10091dda
mov ecx, eax
mov dword [ebp - 0x170], ecx
test ecx, ecx
je 0x10096a72
mov eax, dword [ecx + 4]
mov edx, 0xc00
mov dword [ebp - 0x164], eax
cmp dword [ecx + 8], edx
jne 0x10096acf
push 0x55
lea eax, [ebp - 0xb0]
push eax
push edx
call fcn.10098801
test eax, eax
lea ecx, [ebp - 0xb0]
cmove ecx, dword [ebp - 0x164]
mov dword [ebp - 0x164], ecx
mov ecx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x17c]
imul edx, eax, 0x14
mov dword [ebp - 0x16c], edx
mov edx, dword [edx + 0x100d0b70]
test dl, 0x40
je 0x10096c13
sub eax, 0x10
je 0x10096b4d
sub eax, 1
jne 0x10096b06
push dword [ebx]
call fcn.100972a7
test al, al
je 0x10096f6e
test byte [ebp + 0x1c], 0x20
je 0x10096b52
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x10096b52
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
mov edx, dword [ebp - 0x170]
lea esi, [ebp - 0xb0]
cmp ax, word [edx + 8]
cmovne esi, dword [ebp - 0x164]
mov dword [ebp - 0x164], esi
jmp 0x10096b5e
push dword [ebx + 0xc]
jmp 0x10096af9
mov esi, dword [ebp - 0x164]
mov edx, dword [ebp - 0x170]
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 0x100d0b68]
je 0x10096b76
or ecx, 0x80000000
mov eax, dword [eax + 0x100d0b70]
and eax, 0x80000
mov dword [ebp - 0x16c], ecx
or eax, 0x200000
shr eax, 0x13
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x168], eax
push dword [ebp - 0x178]
push ecx
push edx
push esi
call fcn.100977d3
mov esi, eax
test esi, esi
jne 0x10096bd7
push dword [ebp - 0x168]
push eax
push eax
push dword [ebp - 0x16c]
mov eax, dword [ebp - 0x170]
push eax
push dword [ebp - 0x164]
call fcn.100977d3
mov ecx, dword [ebp - 0x174]
mov dword [ecx], eax
jmp 0x10096bdf
mov ecx, dword [ebp - 0x174]
mov dword [ecx], esi
cmp dword [ecx], 0
jne 0x10096f6e
cmp dword [ebp - 0x17c], 1
jne 0x10096f6e
push dword [ebp + 0x1c]
push ebx
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x178]
push dword [ebp - 0x164]
call fcn.10097082
jmp 0x10096f6c
test dl, dl
jns 0x10096d12
mov eax, dword [ebx + 8]
and dword [ebp - 0x164], esi
mov dword [ebp - 0x168], eax
test eax, eax
jne 0x10096c4e
lea eax, [ebp - 0x168]
push eax
push 1
push dword [ebx]
call fcn.10095b95
mov dword [edi], eax
test eax, eax
js 0x10096f6e
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
push ecx
push eax
call fcn.10095b48
mov dword [edi], eax
test eax, eax
js 0x10096f6e
cmp dword [ebp - 0x17c], 0x29
jne 0x10096c81
push dword [ebx + 0xc]
call fcn.10091dda
mov ebx, eax
test ebx, ebx
jne 0x10096c87
jmp 0x10096f6e
mov ebx, dword [ebp - 0x170]
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 0x100d0b68]
je 0x10096c9f
or ecx, 0x80000000
mov eax, dword [eax + 0x100d0b70]
and eax, 0x80000
mov dword [ebp - 0x17c], ecx
or eax, 0x200000
shr eax, 0x13
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
push dword [ebp - 0x178]
push ecx
push dword [ebp - 0x164]
push ebx
call fcn.10097608
mov esi, eax
test esi, esi
jne 0x10096d05
push dword [ebp - 0x16c]
push eax
push eax
push eax
push dword [ebp - 0x17c]
push dword [ebp - 0x164]
push ebx
call fcn.10097608
mov ecx, dword [ebp - 0x174]
mov dword [ecx], eax
jmp 0x10096f6e
mov ecx, dword [ebp - 0x174]
mov dword [ecx], esi
jmp 0x10096f6e
cmp eax, 4
jl 0x10096f6e
cmp eax, 5
jle 0x10096f54
cmp eax, 0xe
je 0x10096f20
push 0xf
pop edx
cmp eax, edx
je 0x10096eb4
add eax, 0xffffffca
cmp eax, 0xc
ja 0x10096f6e
cmp dword [ebx + 8], esi
je 0x10096f6e
push 0xa
pop edx
push 2
and dword [ebp - 0x164], esi
mov eax, 0x7d6
mov word [ebp - 0x160], ax
pop eax
push 0x1d
mov word [ebp - 0x15c], ax
mov word [ebp - 0x158], ax
pop eax
push 0x17
mov word [ebp - 0x156], ax
pop eax
mov word [ebp - 0x154], ax
xor eax, eax
push 0x50
mov word [ebp - 0x152], ax
lea eax, [ebp - 0x150]
push eax
push 0x1009
push dword [ecx + 4]
mov word [ebp - 0x15e], dx
mov word [ebp - 0x15a], dx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, eax
test esi, esi
je 0x10096dd1
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
pop ecx
mov dword [ebp - 0x164], eax
jmp 0x10096dd7
mov eax, dword [ebp - 0x164]
cmp eax, 1
jne 0x10096f6e
lea eax, [ebp - 0x164]
push eax
push dword [ebx + 8]
call fcn.10095b48
mov dword [edi], eax
test eax, eax
js 0x10096f6e
cmp dword [ebp - 0x164], 1
jne 0x10096f6e
and dword [ebp - 0x168], 0
lea eax, [ebp - 0x168]
push eax
push 1
push dword [ebx]
call fcn.10095b95
mov dword [edi], eax
test eax, eax
js 0x10096f6e
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x168]
call fcn.10095b48
mov dword [edi], eax
test eax, eax
js 0x10096f6e
cmp dword [ebp - 0x164], 1
jne 0x10096f6e
mov eax, dword [ebp - 0x17c]
push 0
add eax, 0xffffffcb
push 0x50
mov word [ebp - 0x15e], ax
lea eax, [ebp - 0x150]
push eax
push str.ddMMMM
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 0x170]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetDateFormatEx]
mov esi, eax
test esi, esi
je 0x10096f6e
lea eax, [ebp - 0x14c]
mov ecx, dword [ebp - 0x174]
push edi
push eax
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x178]
call fcn.10092a18
jmp 0x10096f6c
mov ax, word [ecx + 0xa]
and ax, dx
test byte [ebp + 0x1c], 0x20
movzx esi, ax
je 0x10096efc
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x10096efc
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
mov ecx, eax
mov eax, dword [ebp - 0x170]
cmp cx, word [eax + 8]
jne 0x10096efc
mov esi, ecx
shr esi, 0x10
and esi, 0xf
movzx eax, si
push eax
call fcn.100982a5
mov word [ebp - 0x168], ax
xor eax, eax
mov word [ebp - 0x166], ax
lea eax, [ebp - 0x168]
jmp 0x10096e98
cmp dword [ebx + 4], esi
jne 0x10096f39
lea eax, [ebp - 0x168]
push eax
push dword [ebx]
call fcn.10095d69
mov dword [edi], eax
test eax, eax
js 0x10096f6e
mov ecx, dword [ebp - 0x174]
push edi
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x178]
push dword [ebx + 4]
call fcn.10095a1c
jmp 0x10096f6c
mov ecx, dword [ebp - 0x174]
push edi
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x178]
push dword [ebx]
call fcn.100958c8
mov esi, eax
cmp dword [edi], 0
jl 0x10096f7d
test esi, esi
jne 0x10096f7d
mov dword [edi], 0x80004005
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001550
mov esp, ebp
pop ebp
ret 0x1c