Function at 0x100baa48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x1000f6d4]
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.100b7024
mov ecx, eax
mov dword [ebp - 0x180], ecx
test ecx, ecx
je 0x100baf54
mov eax, ebx
imul eax, eax, 0x14
mov dword [ebp - 0x164], eax
mov eax, dword [eax + 0x10027120]
test al, 0x40
je 0x100baba5
mov eax, dword [ecx + 8]
mov dword [ebp - 0x178], eax
sub ebx, 0x10
je 0x100baad6
dec ebx
jne 0x100baaec
mov eax, dword [ebp - 0x174]
push eax
jmp 0x100baadf
mov eax, dword [ebp - 0x16c]
push dword [eax + 0xc]
call fcn.100ba0e8
test al, al
je 0x100baf4b
test byte [ebp + 0x1c], 0x20
je 0x100bab2f
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x100baf54
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x100baf54
mov ecx, dword [ebp - 0x178]
cmp ax, cx
jne 0x100bab35
mov ecx, eax
jmp 0x100bab35
mov ecx, dword [ebp - 0x178]
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x164]
mov ebx, dword [eax + 0x10027118]
je 0x100bab4d
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 0x100baf54
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 0x100bacb8
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 0x100baf4b
test al, al
jns 0x100bacc5
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 8]
and dword [ebp - 0x178], edi
mov dword [ebp - 0x170], eax
test eax, eax
jne 0x100babeb
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x174]
push 1
push eax
call fcn.100b6649
mov dword [esi], eax
test eax, eax
js 0x100baf5a
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.100b65b2
mov dword [esi], eax
test eax, eax
js 0x100baf5a
cmp ebx, 0x29
jne 0x100bac20
mov eax, dword [ebp - 0x16c]
push dword [eax + 0xc]
call fcn.100b7024
mov ebx, eax
test ebx, ebx
jne 0x100bac26
jmp 0x100baf4b
mov ebx, dword [ebp - 0x180]
test byte [ebp + 0x1c], 0x20
je 0x100bac5a
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x100baf54
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x100baf54
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 0x10027118]
je 0x100bac71
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 0x100bacb8
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 0x100bab98
mov ecx, dword [ebp - 0x168]
mov dword [ecx], edi
jmp 0x100baf4b
cmp ebx, 4
jl 0x100baf54
cmp ebx, 5
jle 0x100baf2c
cmp ebx, 0xe
je 0x100baef1
cmp ebx, 0xf
je 0x100bae77
cmp ebx, 0x35
jle 0x100baf54
cmp ebx, 0x42
jg 0x100baf54
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 8], edi
je 0x100baf54
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 0x100bad8e
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
pop ecx
mov dword [ebp - 0x164], eax
jmp 0x100bad94
mov eax, dword [ebp - 0x164]
cmp eax, 1
jne 0x100baf4b
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x16c]
push dword [eax + 8]
call fcn.100b65b2
mov dword [esi], eax
test eax, eax
js 0x100baf5a
cmp dword [ebp - 0x164], 1
jne 0x100baf4b
and dword [ebp - 0x170], 0
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x16c]
push 1
push dword [eax]
call fcn.100b6649
mov dword [esi], eax
test eax, eax
js 0x100baf5a
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x170]
call fcn.100b65b2
mov dword [esi], eax
test eax, eax
js 0x100baf5a
cmp dword [ebp - 0x164], 1
jne 0x100baf4b
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 0x100baf70
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 0x100baf4b
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.100b6f07
jmp 0x100baf49
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 0x100baecd
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x100baf54
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x100baf54
cmp ax, word [ebp - 0x170]
jne 0x100baecd
mov ebx, eax
shr ebx, 0x10
and ebx, 0xf
movzx eax, bx
push eax
call fcn.100b9cc0
mov word [ebp - 0x180], ax
xor eax, eax
mov word [ebp - 0x17e], ax
lea eax, [ebp - 0x180]
jmp 0x100bae5b
mov ebx, dword [ebp - 0x16c]
cmp dword [ebx + 4], edi
jne 0x100baf11
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebx]
push eax
call fcn.100b5a87
mov dword [esi], eax
test eax, eax
js 0x100baf5a
mov ecx, dword [ebp - 0x168]
push esi
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x17c]
push dword [ebx + 4]
call fcn.100b512d
jmp 0x100baf49
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.100b547d
mov edi, eax
cmp dword [esi], 0
jl 0x100baf5a
test edi, edi
jne 0x100baf5a
mov dword [esi], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002069
leave
ret 0x1c