Function at 0x449a91
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x4a95d0]
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.004466bd
mov ecx, eax
mov dword [ebp - 0x180], ecx
test ecx, ecx
je 0x449f9d
mov eax, ebx
imul eax, eax, 0x14
mov dword [ebp - 0x164], eax
mov eax, dword [eax + 0x412bf0]
test al, 0x40
je 0x449bee
mov eax, dword [ecx + 8]
mov dword [ebp - 0x178], eax
sub ebx, 0x10
je 0x449b1f
dec ebx
jne 0x449b35
mov eax, dword [ebp - 0x174]
push eax
jmp 0x449b28
mov eax, dword [ebp - 0x16c]
push dword [eax + 0xc]
call fcn.00449211
test al, al
je 0x449f94
test byte [ebp + 0x1c], 0x20
je 0x449b78
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x449f9d
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x449f9d
mov ecx, dword [ebp - 0x178]
cmp ax, cx
jne 0x449b7e
mov ecx, eax
jmp 0x449b7e
mov ecx, dword [ebp - 0x178]
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x164]
mov ebx, dword [eax + 0x412be8]
je 0x449b96
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 0x449f9d
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 0x449d02
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 0x449f94
test al, al
jns 0x449d0f
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 8]
and dword [ebp - 0x178], edi
mov dword [ebp - 0x170], eax
test eax, eax
jne 0x449c34
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x174]
push 1
push eax
call fcn.004461a2
mov dword [esi], eax
test eax, eax
js 0x449fa3
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.0044610b
mov dword [esi], eax
test eax, eax
js 0x449fa3
cmp ebx, 0x29
jne 0x449c6a
mov eax, dword [ebp - 0x16c]
push dword [eax + 0xc]
call fcn.004466bd
mov ebx, eax
test ebx, ebx
je 0x449f94
jmp 0x449c70
mov ebx, dword [ebp - 0x180]
test byte [ebp + 0x1c], 0x20
je 0x449ca4
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x449f9d
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x449f9d
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 0x412be8]
je 0x449cbb
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 0x449d02
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 0x449be1
mov ecx, dword [ebp - 0x168]
mov dword [ecx], edi
jmp 0x449f94
cmp ebx, 4
jl 0x449f9d
cmp ebx, 5
jle 0x449f75
cmp ebx, 0xe
je 0x449f3a
cmp ebx, 0xf
je 0x449ec0
cmp ebx, 0x35
jle 0x449f9d
cmp ebx, 0x42
jg 0x449f9d
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 8], edi
je 0x449f9d
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 0x449dd7
lea eax, [ebp - 0x150]
push eax
call fcn.0045fc96
pop ecx
mov dword [ebp - 0x164], eax
jmp 0x449ddd
mov eax, dword [ebp - 0x164]
cmp eax, 1
jne 0x449f94
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x16c]
push dword [eax + 8]
call fcn.0044610b
mov dword [esi], eax
test eax, eax
js 0x449fa3
cmp dword [ebp - 0x164], 1
jne 0x449f94
and dword [ebp - 0x170], 0
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x16c]
push 1
push dword [eax]
call fcn.004461a2
mov dword [esi], eax
test eax, eax
js 0x449fa3
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x170]
call fcn.0044610b
mov dword [esi], eax
test eax, eax
js 0x449fa3
cmp dword [ebp - 0x164], 1
jne 0x449f94
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 0x4143f4
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 0x449f94
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.00446362
jmp 0x449f92
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 0x449f16
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x449f9d
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x449f9d
cmp ax, word [ebp - 0x170]
jne 0x449f16
mov ebx, eax
shr ebx, 0x10
and ebx, 0xf
movzx eax, bx
push eax
call fcn.00448e13
mov word [ebp - 0x180], ax
xor eax, eax
mov word [ebp - 0x17e], ax
lea eax, [ebp - 0x180]
jmp 0x449ea4
mov ebx, dword [ebp - 0x16c]
cmp dword [ebx + 4], edi
jne 0x449f5a
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebx]
push eax
call fcn.00445ef0
mov dword [esi], eax
test eax, eax
js 0x449fa3
mov ecx, dword [ebp - 0x168]
push esi
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x17c]
push dword [ebx + 4]
call fcn.004459a8
jmp 0x449f92
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.00445cf3
mov edi, eax
cmp dword [esi], 0
jl 0x449fa3
test edi, edi
jne 0x449fa3
mov dword [esi], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 0x1c