Function at 0x100b6ef0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
and dword [ecx], edi
and dword [esi], edi
mov dword [ebp - 0x16c], eax
mov eax, dword [eax]
push eax
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x174], eax
call fcn.100b3088
mov ecx, eax
mov dword [ebp - 0x180], ecx
test ecx, ecx
je 0x100b73fc
mov eax, ebx
imul eax, eax, 0x14
mov dword [ebp - 0x164], eax
mov eax, dword [eax + 0x10015a48]
test al, 0x40
je 0x100b704d
mov eax, dword [ecx + 8]
mov dword [ebp - 0x178], eax
sub ebx, 0x10
je 0x100b6f7e
dec ebx
jne 0x100b6f94
mov eax, dword [ebp - 0x174]
push eax
jmp 0x100b6f87
mov eax, dword [ebp - 0x16c]
push dword [eax + 0xc]
call fcn.100b6590
test al, al
je 0x100b73f3
test byte [ebp + 0x1c], 0x20
je 0x100b6fd7
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x100b73fc
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x100b73fc
mov ecx, dword [ebp - 0x178]
cmp ax, cx
jne 0x100b6fdd
mov ecx, eax
jmp 0x100b6fdd
mov ecx, dword [ebp - 0x178]
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x164]
mov ebx, dword [eax + 0x10015a40]
je 0x100b6ff5
or ebx, 0x80000000
push 0
push 0x55
lea eax, [ebp - 0xb0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x100b73fc
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x17c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov edi, eax
test edi, edi
jne 0x100b7160
push eax
push eax
push ebx
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov ecx, dword [ebp - 0x168]
mov dword [ecx], eax
jmp 0x100b73f3
test al, al
jns 0x100b716d
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 8]
and dword [ebp - 0x178], edi
mov dword [ebp - 0x170], eax
test eax, eax
jne 0x100b7093
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x174]
push 1
push eax
call fcn.100b253d
mov dword [esi], eax
test eax, eax
js 0x100b7402
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.100b24a6
mov dword [esi], eax
test eax, eax
js 0x100b7402
cmp ebx, 0x29
jne 0x100b70c8
mov eax, dword [ebp - 0x16c]
push dword [eax + 0xc]
call fcn.100b3088
mov ebx, eax
test ebx, ebx
jne 0x100b70ce
jmp 0x100b73f3
mov ebx, dword [ebp - 0x180]
test byte [ebp + 0x1c], 0x20
je 0x100b7102
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x100b73fc
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x100b73fc
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 0x10015a40]
je 0x100b7119
or eax, 0x80000000
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x174], eax
push dword [ebp - 0x17c]
push eax
push 0
push dword [ebp - 0x178]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoEx]
mov edi, eax
test edi, edi
jne 0x100b7160
push eax
push eax
push eax
push dword [ebp - 0x174]
push eax
push dword [ebp - 0x178]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoEx]
jmp 0x100b7040
mov ecx, dword [ebp - 0x168]
mov dword [ecx], edi
jmp 0x100b73f3
cmp ebx, 4
jl 0x100b73fc
cmp ebx, 5
jle 0x100b73d4
cmp ebx, 0xe
je 0x100b7399
cmp ebx, 0xf
je 0x100b731f
cmp ebx, 0x35
jle 0x100b73fc
cmp ebx, 0x42
jg 0x100b73fc
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 8], edi
je 0x100b73fc
push 0xa
pop edx
push 2
and dword [ebp - 0x164], edi
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 edi, eax
test edi, edi
je 0x100b7236
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
pop ecx
mov dword [ebp - 0x164], eax
jmp 0x100b723c
mov eax, dword [ebp - 0x164]
cmp eax, 1
jne 0x100b73f3
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x16c]
push dword [eax + 8]
call fcn.100b24a6
mov dword [esi], eax
test eax, eax
js 0x100b7402
cmp dword [ebp - 0x164], 1
jne 0x100b73f3
and dword [ebp - 0x170], 0
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x16c]
push 1
push dword [eax]
call fcn.100b253d
mov dword [esi], eax
test eax, eax
js 0x100b7402
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x170]
call fcn.100b24a6
mov dword [esi], eax
test eax, eax
js 0x100b7402
cmp dword [ebp - 0x164], 1
jne 0x100b73f3
push 0
lea eax, [ebx - 0x35]
mov ebx, dword [ebp - 0x180]
push 0x50
mov word [ebp - 0x15e], ax
lea eax, [ebp - 0x150]
push eax
push 0x100b7418
lea eax, [ebp - 0x160]
push eax
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetDateFormatEx]
mov edi, eax
test edi, edi
je 0x100b73f3
lea eax, [ebp - 0x14c]
mov ecx, dword [ebp - 0x168]
push esi
push eax
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x17c]
call fcn.100b2f6b
jmp 0x100b73f1
mov eax, dword [ecx + 8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0xf
test byte [ebp + 0x1c], 0x20
mov dword [ebp - 0x170], eax
je 0x100b7375
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x100b73fc
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x100b73fc
cmp ax, word [ebp - 0x170]
jne 0x100b7375
mov ebx, eax
shr ebx, 0x10
and ebx, 0xf
movzx eax, bx
push eax
call fcn.100b6168
mov word [ebp - 0x180], ax
xor eax, eax
mov word [ebp - 0x17e], ax
lea eax, [ebp - 0x180]
jmp 0x100b7303
mov ebx, dword [ebp - 0x16c]
cmp dword [ebx + 4], edi
jne 0x100b73b9
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebx]
push eax
call fcn.100b197f
mov dword [esi], eax
test eax, eax
js 0x100b7402
mov ecx, dword [ebp - 0x168]
push esi
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x17c]
push dword [ebx + 4]
call fcn.100b1022
jmp 0x100b73f1
mov ecx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x174]
push esi
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x17c]
push eax
call fcn.100b1372
mov edi, eax
cmp dword [esi], 0
jl 0x100b7402
test edi, edi
jne 0x100b7402
mov dword [esi], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002238e
leave
ret 0x1c