Function at 0x10150d0f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x1065e7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
and dword [ebp - 0x2c8], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x2c0], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x2d8], eax
mov eax, dword [edx + 8]
and dword [esi], ebx
and dword [ecx], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2d4], edi
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x2cc], eax
test edi, edi
je 0x10150d7f
cmp dword [ebp + 0xc], ebx
jbe 0x10150d7f
xor eax, eax
mov word [edi], ax
push edx
call fcn.1015217e
test al, al
je 0x10150f5d
mov esi, dword [ebp - 0x2bc]
lea edi, [ebp - 0x2fc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2fc]
push edi
call fcn.1014b460
test al, al
je 0x10150dc6
push edi
call fcn.1014b486
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10150dc6
cmp eax, 1
cmovne edi, eax
mov dword [ebp - 0x2fc], edi
mov esi, dword [ebp - 0x2f0]
push esi
call fcn.1014b460
test al, al
je 0x10150def
push esi
call fcn.1014b486
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10150def
cmp eax, 1
cmovne esi, eax
mov dword [ebp - 0x2f0], esi
lea eax, [ebp - 0x2fc]
push eax
call fcn.1015217e
test al, al
je 0x10150e58
mov ecx, dword [ebp - 0x2c0]
imul eax, ecx, 0x14
test byte [eax + 0x10398770], 0xa
je 0x10150e98
test dword [ebp + 0x1c], 0x7100
jne 0x10150e98
mov esi, dword [ebp - 0x2bc]
push dword [esi]
call fcn.1014b460
test al, al
je 0x10150e4b
lea eax, [ebp - 0x2fc]
push eax
push dword [esi]
call fcn.101526a2
test eax, eax
js 0x1015173f
mov edi, dword [ebp - 0x2fc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi]
jne 0x10150e75
mov dword [ebp - 0x2f0], edi
mov esi, dword [ebp - 0x2d0]
lea eax, [ebp - 0x2fc]
mov edi, dword [ebp - 0x2d4]
mov dword [ebp - 0x2bc], eax
jmp 0x10150f63
push eax
call fcn.1014b460
test al, al
je 0x10150e58
lea eax, [ebp - 0x2f0]
push eax
push dword [esi + 0xc]
call fcn.101526a2
test eax, eax
js 0x1015173f
jmp 0x10150e58
cmp ecx, 1
jne 0x1015173f
mov esi, dword [ebp - 0x2bc]
push dword [esi]
call fcn.1014b486
test eax, eax
je 0x1015173f
mov edi, 0xc00
cmp dword [eax + 8], edi
jne 0x10150f12
push 0xaa
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.1027bff1
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0x55
push eax
push edi
call fcn.101535ad
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x2d4]
test eax, eax
js 0x10150f33
push eax
push edi
push 2
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp - 0x2d0]
mov ebx, eax
mov dword [esi], ebx
mov eax, dword [ebp + 0xc]
jmp 0x10150f39
push dword [ebp + 0x1c]
mov edi, dword [ebp - 0x2d4]
push esi
mov esi, dword [ebp - 0x2d0]
push esi
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
call fcn.10151dc9
mov ebx, eax
jmp 0x10150f0d
mov esi, dword [ebp - 0x2d0]
test edi, edi
je 0x1015173f
xor ecx, ecx
cmp cx, word [edi]
jne 0x1015173f
cmp eax, dword [esi]
jbe 0x1015173f
xor ebx, ebx
and dword [esi], ecx
jmp 0x1015173f
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2c4], eax
call fcn.1014b486
mov edx, eax
mov dword [ebp - 0x2e4], edx
test edx, edx
jne 0x10150f94
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], 0x80004005
jmp 0x10151754
mov eax, dword [ebp - 0x2c0]
cmp eax, 0xc
jg 0x10151185
je 0x101510e1
sub eax, 0
je 0x10151037
sub eax, 1
je 0x10151016
dec eax
sub eax, 1
je 0x10151037
sub eax, 1
jne 0x101511a0
mov ebx, 0xc00
cmp dword [edx + 8], ebx
jne 0x10151007
push 0xaa
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.1027bff1
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0x55
push eax
push ebx
call fcn.101535ad
mov ecx, dword [ebp - 0x2b4]
lea eax, [ebp - 0xb0]
push ecx
push eax
jmp 0x10151733
mov ecx, dword [ebp - 0x2b4]
push ecx
push dword [edx + 4]
jmp 0x10151733
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2c8], str.CultureNameDisplay
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c4], eax
mov eax, dword [edx + 4]
jmp 0x1015114e
push dword [ebp - 0x2b8]
call fcn.1014cce4
test al, al
jne 0x1015173f
and dword [ebp - 0x2dc], ebx
lea eax, [ebp - 0x2dc]
push eax
xor eax, eax
cmp dword [ebp - 0x2c0], eax
setne al
inc eax
push eax
push dword [ebp - 0x2b8]
call fcn.10150970
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x2b8]
test eax, eax
js 0x1015108e
cmp dword [ebp - 0x2dc], ebx
cmovne ecx, dword [ebp - 0x2dc]
cmp eax, 0x8007000e
je 0x1015173f
mov eax, dword [ebp - 0x2bc]
mov edx, str.CultureNameProof
cmp dword [ebp - 0x2c0], ebx
push ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c4], eax
mov eax, str.CultureNameConfig
cmovne eax, edx
mov dword [ebp - 0x2c8], eax
call fcn.1014b486
test eax, eax
jne 0x101510dc
mov eax, dword [ebp - 0x2b4]
mov dword [eax], 0x80004005
jmp 0x10151754
mov eax, dword [eax + 4]
jmp 0x1015114e
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c8], str.ScriptNameDisplay
cmp dword [ebp - 0x2d8], ebx
jne 0x10151124
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2b8]
call fcn.10150a06
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
test eax, eax
js 0x1015173f
push dword [ebp - 0x2b4]
lea eax, [ebp - 0x1b0]
push 0
push 5
push eax
push dword [ebp - 0x2d8]
call fcn.1014ff6e
test eax, eax
je 0x1015173f
lea eax, [ebp - 0x1b0]
mov edx, dword [ebp + 0x1c]
mov ecx, edx
and ecx, 0x7100
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x314], ecx
je 0x1015139e
xor ecx, ecx
test dword [ecx*8 + 0x10399278], edx
jne 0x10151374
inc ecx
cmp ecx, 4
jb 0x1015116d
jmp 0x1015139e
sub eax, 0xd
je 0x101510f0
sub eax, 0x1c
je 0x10151319
sub eax, 1
je 0x10151328
push dword [ebp - 0x2b8]
or dword [ebp - 0x2e8], 0xffffffff
or dword [ebp - 0x2ec], 0xffffffff
or dword [ebp - 0x2e0], 0xffffffff
call fcn.1014cad3
test al, al
je 0x101511eb
lea eax, [ebp - 0x2e8]
push eax
push 4
push dword [ebp - 0x2b8]
call fcn.10150970
lea eax, [ebp - 0x2ec]
push eax
mov eax, dword [ebp - 0x2bc]
push 5
push dword [eax]
jmp 0x10151209
push dword [ebp - 0x2b8]
call fcn.1014b43a
test al, al
je 0x1015120e
lea eax, [ebp - 0x2e0]
push eax
push 3
push dword [ebp - 0x2b8]
call fcn.10150970
imul eax, dword [ebp - 0x2c0], 0x14
mov dword [ebp - 0x2b8], eax
mov eax, dword [eax + 0x10398770]
test al, 0x10
je 0x101512a1
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x2dc], eax
call fcn.1014cad3
test al, al
je 0x1015125c
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2e8]
test dword [eax + 0x10398770], 0x80000
cmovne ecx, dword [ebp - 0x2ec]
jmp 0x1015127c
push dword [ebp - 0x2dc]
call fcn.1014b43a
mov ecx, dword [ebp - 0x2c4]
test al, al
mov eax, dword [ebp - 0x2b8]
cmovne ecx, dword [ebp - 0x2e0]
test dword [eax + 0x10398770], 0x80000
mov edx, str.CultureInfoLanguage
mov dword [ebp - 0x2c4], ecx
mov ecx, str.CultureInfoRegion
cmove ecx, edx
mov dword [ebp - 0x2c8], ecx
jmp 0x1015130e
test al, 0x20
je 0x10151308
cmp dword [ebp - 0x2cc], ebx
jne 0x101512d3
lea eax, [ebp - 0x2cc]
push eax
mov eax, dword [ebp - 0x2bc]
push 1
push dword [eax]
call fcn.1015056c
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
test eax, eax
js 0x1015173f
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [0x106684f4]
add ecx, ecx
push 0
push dword [eax + ecx*8 + 4]
lea eax, [ebp - 0x1b0]
push 0x7f
push eax
call fcn.10153c85
test al, al
je 0x1015173f
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2b8]
mov eax, dword [eax + 0x10398764]
jmp 0x1015114e
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c8], str.CalendarNameDisplay
cmp dword [ebp - 0x2cc], ebx
jne 0x1015135e
lea eax, [ebp - 0x2cc]
push eax
push 1
push dword [ebp - 0x2b8]
call fcn.1015056c
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
test eax, eax
js 0x1015173f
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [0x106684f4]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 4]
jmp 0x1015114e
push eax
push dword [ecx*8 + 0x1039927c]
lea eax, [ebp - 0x2b0]
push 0x7f
push eax
call fcn.10153d03
test al, al
je 0x1015173f
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b8], eax
test edi, edi
je 0x10151464
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10151464
mov edx, dword [ebp - 0x2c0]
imul eax, edx, 0x14
test dword [eax + 0x10398770], 0x2000
je 0x1015145e
test ecx, ecx
js 0x10151406
push 0
push ecx
push edi
push 0
push dword [ebp - 0x2b8]
push dword [ebp - 0x2c8]
push dword [ebp - 0x2c4]
call fcn.1014b957
test eax, eax
js 0x101513f9
lea ebx, [eax + 1]
mov dword [esi], ebx
jmp 0x1015173f
xor ebx, ebx
and dword [esi], ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c0]
cmp dword [ebp - 0x314], 0
jne 0x1015173f
cmp edx, 8
jg 0x101515d3
je 0x1015159a
sub edx, 0
je 0x10151558
sub edx, 1
je 0x10151528
dec edx
sub edx, 1
je 0x10151558
dec edx
sub edx, 1
jne 0x1015173f
mov eax, dword [ebp - 0x2e4]
push dword [ebp - 0x2b4]
push dword [eax + 4]
push esi
push ecx
jmp 0x10151737
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x32c]
push ecx
push 0
push eax
push dword [ebp - 0x2c8]
push dword [ebp - 0x2c4]
call fcn.1014bd95
test eax, eax
js 0x101513fd
mov ecx, dword [ebp - 0x32c]
mov edx, 0x4000
cmp dword [ecx], ebx
jne 0x101514b6
imul eax, dword [ebp - 0x2c0], 0x14
test dword [eax + 0x10398770], edx
jne 0x101514b6
lea eax, [ebp - 0x32c]
push eax
call fcn.1014c06f
jmp 0x101513fd
imul eax, dword [ebp - 0x2c0], 0x14
mov eax, dword [eax + 0x10398770]
test eax, 0x2000
je 0x101514de
push dword [ebp - 0x2b4]
push dword [ecx]
push esi
push dword [ebp + 0xc]
push edi
call fcn.1014c2ea
jmp 0x10151515
test eax, 0x8000
je 0x101514f6
push dword [ecx]
push dword [ebp + 0xc]
push edi
call fcn.101536f8
mov ebx, eax
mov dword [esi], ebx
jmp 0x10151517
test edx, eax
je 0x10151517
push dword [ebp - 0x2b4]
push 0
push 0
push ecx
push dword [ebp - 0x328]
push esi
push dword [ebp + 0xc]
push edi
call fcn.101535c5
mov ebx, eax
lea eax, [ebp - 0x32c]
push eax
call fcn.1014c06f
jmp 0x1015173f
mov eax, dword [ebp - 0x2bc]
push dword [eax]
call fcn.1014b486
test eax, eax
je 0x1015173f
push dword [ebp + 0x1c]
push dword [ebp - 0x2bc]
push esi
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
call fcn.10151dc9
jmp 0x1015173d
lea eax, [ebp - 0x32c]
push eax
push 0
push dword [ebp - 0x2b8]
push str.CultureNameDisplay
push dword [ebp - 0x2c4]
call fcn.1014bd95
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
test eax, eax
js 0x1015173f
mov eax, dword [ebp - 0x32c]
cmp dword [eax], 0
je 0x10151517
push ecx
push dword [eax]
jmp 0x101514d2
mov eax, dword [ebp - 0x2e4]
push dword [eax + 4]
lea eax, [ebp - 0x310]
push eax
call fcn.101537e9
cmp dword [ebp - 0x30c], 0
jbe 0x10151728
push dword [ebp - 0x2b4]
push dword [ebp - 0x30c]
push dword [ebp - 0x310]
jmp 0x10151718
sub edx, 0xb
je 0x101516e7
sub edx, 3
je 0x1015169f
sub edx, 4
je 0x1015168f
sub edx, 0x72
jne 0x1015173f
or dword [ebp - 0x2e0], 0xffffffff
lea eax, [ebp - 0x2e0]
push eax
mov eax, dword [ebp - 0x2bc]
xor ebx, ebx
and dword [esi], ebx
push 5
push dword [eax]
call fcn.10150970
mov eax, dword [ebp - 0x2e0]
cmp eax, 0xffffffff
je 0x10151676
cmp eax, dword [ebp - 0x2c4]
je 0x10151676
mov esi, dword [ebp - 0x2bc]
lea edi, [ebp - 0x30c]
push dword [ebp - 0x2b4]
push dword [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
push 0x84
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2d0]
mov edi, dword [ebp - 0x2d4]
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0x30c]
push eax
push esi
push dword [ebp + 0xc]
push edi
call fcn.10150d0f
mov ebx, eax
test ebx, ebx
jne 0x1015173f
cmp dword [esi], 0
jne 0x1015173f
push dword [ebp - 0x2b4]
push str.1111100
jmp 0x10151733
push dword [ebp - 0x2b4]
push 0x1033341c
jmp 0x10151457
cmp dword [ebp - 0x2d8], 0
je 0x101516be
push dword [ebp - 0x2b4]
push esi
push ecx
push edi
push dword [ebp - 0x2d8]
call fcn.1014ff6e
jmp 0x10151722
mov eax, dword [ebp - 0x2e4]
push dword [eax + 4]
lea eax, [ebp - 0x310]
push eax
call fcn.101537e9
mov ecx, dword [ebp - 0x308]
test ecx, ecx
je 0x10151728
push dword [ebp - 0x2b4]
push 4
jmp 0x1015170e
mov eax, dword [ebp - 0x2e4]
push dword [eax + 4]
lea eax, [ebp - 0x310]
push eax
call fcn.101537e9
mov ecx, dword [ebp - 0x304]
test ecx, ecx
je 0x10151728
push dword [ebp - 0x2b4]
push 2
mov eax, dword [ebp - 0x310]
lea eax, [eax + ecx*2]
push eax
push esi
push dword [ebp + 0xc]
push edi
call fcn.10151cda
mov ebx, eax
test ebx, ebx
jne 0x1015173f
push dword [ebp - 0x2b4]
push 0x1033341c
push esi
push dword [ebp + 0xc]
push edi
call fcn.1014c2ea
mov ebx, eax
mov esi, dword [ebp - 0x2b4]
cmp dword [esi], 0
jl 0x10151754
test ebx, ebx
jne 0x10151754
mov dword [esi], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102790a9
mov esp, ebp
pop ebp
ret 0x1c