Function at 0x1003f446
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x1001c40c]
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.1003a956
mov ecx, eax
mov dword [ebp - 0x180], ecx
test ecx, ecx
je 0x1003f953
mov eax, ebx
imul eax, eax, 0x14
mov dword [ebp - 0x164], eax
mov eax, dword [eax + 0x10013268]
test al, 0x40
je 0x1003f5a3
mov eax, dword [ecx + 8]
mov dword [ebp - 0x178], eax
sub ebx, 0x10
je 0x1003f4d4
dec ebx
jne 0x1003f4ea
mov eax, dword [ebp - 0x174]
push eax
jmp 0x1003f4dd
mov eax, dword [ebp - 0x16c]
push dword [eax + 0xc]
call fcn.1003ebc6
test al, al
je 0x1003f94a
test byte [ebp + 0x1c], 0x20
je 0x1003f52d
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x1003f953
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x1003f953
mov ecx, dword [ebp - 0x178]
cmp ax, cx
jne 0x1003f533
mov ecx, eax
jmp 0x1003f533
mov ecx, dword [ebp - 0x178]
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x164]
mov ebx, dword [eax + 0x10013260]
je 0x1003f54b
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 0x1003f953
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 0x1003f6b7
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 0x1003f94a
test al, al
jns 0x1003f6c4
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 8]
and dword [ebp - 0x178], edi
mov dword [ebp - 0x170], eax
test eax, eax
jne 0x1003f5e9
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x174]
push 1
push eax
call fcn.10039dc1
mov dword [esi], eax
test eax, eax
js 0x1003f959
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.10039d2a
mov dword [esi], eax
test eax, eax
js 0x1003f959
cmp ebx, 0x29
jne 0x1003f61f
mov eax, dword [ebp - 0x16c]
push dword [eax + 0xc]
call fcn.1003a956
mov ebx, eax
test ebx, ebx
je 0x1003f94a
jmp 0x1003f625
mov ebx, dword [ebp - 0x180]
test byte [ebp + 0x1c], 0x20
je 0x1003f659
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x1003f953
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x1003f953
test byte [ebp + 0x1c], 2
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 0x10013260]
je 0x1003f670
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 0x1003f6b7
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 0x1003f596
mov ecx, dword [ebp - 0x168]
mov dword [ecx], edi
jmp 0x1003f94a
cmp ebx, 4
jl 0x1003f953
cmp ebx, 5
jle 0x1003f92b
cmp ebx, 0xe
je 0x1003f8f0
cmp ebx, 0xf
je 0x1003f876
cmp ebx, 0x35
jle 0x1003f953
cmp ebx, 0x42
jg 0x1003f953
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 8], edi
je 0x1003f953
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 0x1003f78d
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
pop ecx
mov dword [ebp - 0x164], eax
jmp 0x1003f793
mov eax, dword [ebp - 0x164]
cmp eax, 1
jne 0x1003f94a
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x16c]
push dword [eax + 8]
call fcn.10039d2a
mov dword [esi], eax
test eax, eax
js 0x1003f959
cmp dword [ebp - 0x164], 1
jne 0x1003f94a
and dword [ebp - 0x170], 0
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x16c]
push 1
push dword [eax]
call fcn.10039dc1
mov dword [esi], eax
test eax, eax
js 0x1003f959
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x170]
call fcn.10039d2a
mov dword [esi], eax
test eax, eax
js 0x1003f959
cmp dword [ebp - 0x164], 1
jne 0x1003f94a
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 0x10014a08
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 0x1003f94a
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.1003a5fa
jmp 0x1003f948
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 0x1003f8cc
push 0x55
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
js 0x1003f953
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
test eax, eax
je 0x1003f953
cmp ax, word [ebp - 0x170]
jne 0x1003f8cc
mov ebx, eax
shr ebx, 0x10
and ebx, 0xf
movzx eax, bx
push eax
call fcn.1003e7c7
mov word [ebp - 0x180], ax
xor eax, eax
mov word [ebp - 0x17e], ax
lea eax, [ebp - 0x180]
jmp 0x1003f85a
mov ebx, dword [ebp - 0x16c]
cmp dword [ebx + 4], edi
jne 0x1003f910
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebx]
push eax
call fcn.10039202
mov dword [esi], eax
test eax, eax
js 0x1003f959
mov ecx, dword [ebp - 0x168]
push esi
push ecx
push dword [ebp + 0xc]
push dword [ebp - 0x17c]
push dword [ebx + 4]
call fcn.10038612
jmp 0x1003f948
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.10038b74
mov edi, eax
cmp dword [esi], 0
jl 0x1003f959
test edi, edi
jne 0x1003f959
mov dword [esi], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048c09
leave
ret 0x1c