Function at 0x417ac3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x45190c]
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 - 0x2dc], eax
mov eax, dword [edx + 8]
and dword [esi], ebx
and dword [ecx], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2d0], edi
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x2b4], ecx
mov dword [ebp - 0x2d8], eax
test edi, edi
je 0x417b33
cmp dword [ebp + 0xc], ebx
jbe 0x417b33
xor eax, eax
mov word [edi], ax
push edx
call fcn.00419023
test al, al
je 0x417ddf
mov esi, dword [ebp - 0x2bc]
lea edi, [ebp - 0x2f4]
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 - 0x2f4]
push edi
call fcn.004134d9
mov esi, dword [ebp - 0x2c0]
test al, al
je 0x417b8b
push esi
call fcn.00417aa2
test al, al
je 0x417b8b
push edi
call fcn.0041352c
mov edx, dword [eax + 0x28]
push edx
call fcn.00418e6c
test al, al
cmove edi, edx
mov dword [ebp - 0x2f4], edi
push dword [ebp - 0x2e8]
call fcn.004134d9
test al, al
je 0x417bbf
push dword [ebp - 0x2e8]
call fcn.0041352c
mov edx, dword [eax + 0x28]
push edx
call fcn.00418e6c
test al, al
mov eax, dword [ebp - 0x2e8]
cmove eax, edx
mov dword [ebp - 0x2e8], eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.00419023
test al, al
je 0x417dc5
imul eax, esi, 0x14
test byte [eax + 0x42cee0], 0xa
je 0x417c51
test dword [ebp + 0x1c], 0x7100
jne 0x417c51
mov esi, dword [ebp - 0x2bc]
push dword [esi]
call fcn.004134d9
test al, al
je 0x417c15
lea eax, [ebp - 0x2f4]
push eax
push dword [esi]
call fcn.00419578
test eax, eax
js 0x418627
mov edi, dword [ebp - 0x2f4]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi]
jne 0x417c27
mov dword [ebp - 0x2e8], edi
jmp 0x417dc5
push eax
call fcn.004134d9
test al, al
je 0x417dc5
lea eax, [ebp - 0x2e8]
push eax
push dword [esi + 0xc]
call fcn.00419578
test eax, eax
js 0x418627
jmp 0x417dc5
cmp esi, 1
jne 0x417d77
mov esi, dword [ebp - 0x2bc]
push dword [esi]
call fcn.0041352c
mov edi, eax
mov dword [ebp - 0x2d4], edi
test edi, edi
je 0x418627
push dword [edi + 4]
lea eax, [ebp - 0x318]
push eax
call fcn.0041a782
cmp dword [ebp - 0x314], ebx
jne 0x417cbe
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x2d0]
test eax, eax
js 0x417d6f
push eax
mov eax, dword [ebp - 0x2d4]
push edi
push 2
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp - 0x2cc]
mov ebx, eax
mov dword [esi], ebx
jmp 0x417d0f
push dword [esi]
call fcn.004134d9
test al, al
je 0x417d66
mov edx, dword [edi + 0x28]
push edx
call fcn.00418e6c
mov edi, dword [ebp - 0x2d0]
test al, al
jne 0x417d5e
cmp edx, dword [esi]
mov esi, dword [ebp - 0x2cc]
je 0x417d13
mov ecx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2f4]
push ecx
push dword [ebp + 0x1c]
mov dword [ebp - 0x2f4], edx
push 1
push eax
push esi
push dword [ebp + 0xc]
push edi
call fcn.00417ac3
mov ebx, eax
test ebx, ebx
jne 0x417d37
mov eax, dword [ebp + 0xc]
cmp dword [esi], 0
jne 0x417d37
push dword [ebp + 0x1c]
push dword [ebp - 0x2bc]
push esi
push eax
mov eax, dword [ebp - 0x2d4]
push edi
push dword [eax + 4]
call fcn.00418cb9
mov ebx, eax
test edi, edi
je 0x418627
xor eax, eax
cmp ax, word [edi]
jne 0x418627
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi]
jbe 0x418627
xor ebx, ebx
and dword [esi], ebx
jmp 0x418627
mov esi, dword [ebp - 0x2cc]
jmp 0x417d13
mov edi, dword [ebp - 0x2d0]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x2cc]
jmp 0x417d16
cmp esi, 0x29
jne 0x418627
lea eax, [ebp - 0x2e8]
push eax
mov eax, dword [ebp - 0x2bc]
push 4
push dword [eax + 0xc]
call fcn.0041716f
test eax, eax
js 0x418627
push dword [ebp - 0x2e8]
call fcn.004134d9
test al, al
jne 0x418627
push dword [ebp - 0x2e8]
call fcn.00418e6c
test al, al
jne 0x418627
mov esi, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2f4]
mov edi, dword [ebp - 0x2d0]
mov dword [ebp - 0x2bc], eax
jmp 0x417de5
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2c4], eax
call fcn.0041352c
mov edx, eax
mov dword [ebp - 0x2e4], edx
test edx, edx
jne 0x417e16
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], 0x80004005
jmp 0x41863c
mov eax, dword [ebp - 0x2c0]
cmp eax, 0xc
jg 0x418007
je 0x417f63
sub eax, 0
je 0x417eb9
sub eax, 1
je 0x417e98
dec eax
sub eax, 1
je 0x417eb9
sub eax, 1
jne 0x418022
mov ebx, 0xc00
cmp dword [edx + 8], ebx
jne 0x417e89
push 0xaa
push eax
lea eax, [ebp - 0xb0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0x55
push eax
push ebx
call fcn.0041a547
mov ecx, dword [ebp - 0x2b4]
lea eax, [ebp - 0xb0]
push ecx
push eax
jmp 0x41861b
mov ecx, dword [ebp - 0x2b4]
push ecx
push dword [edx + 4]
jmp 0x41861b
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 0x417fd0
push dword [ebp - 0x2b8]
call fcn.004134ae
test al, al
jne 0x418627
and dword [ebp - 0x2d4], ebx
lea eax, [ebp - 0x2d4]
push eax
xor eax, eax
cmp dword [ebp - 0x2c0], eax
setne al
inc eax
push eax
push dword [ebp - 0x2b8]
call fcn.0041716f
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x2b8]
test eax, eax
js 0x417f10
cmp dword [ebp - 0x2d4], ebx
cmovne ecx, dword [ebp - 0x2d4]
cmp eax, 0x8007000e
je 0x418627
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.0041352c
test eax, eax
jne 0x417f5e
mov eax, dword [ebp - 0x2b4]
mov dword [eax], 0x80004005
jmp 0x41863c
mov eax, dword [eax + 4]
jmp 0x417fd0
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c8], str.ScriptNameDisplay
cmp dword [ebp - 0x2dc], ebx
jne 0x417fa6
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2b8]
call fcn.00417205
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
test eax, eax
js 0x418627
push dword [ebp - 0x2b4]
lea eax, [ebp - 0x1b0]
push 0
push 5
push eax
push dword [ebp - 0x2dc]
call fcn.00416b0b
test eax, eax
je 0x418627
lea eax, [ebp - 0x1b0]
mov edx, dword [ebp + 0x1c]
mov ecx, edx
and ecx, 0x7100
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2f8], ecx
je 0x418220
xor ecx, ecx
test dword [ecx*8 + 0x42d9e8], edx
jne 0x4181f6
inc ecx
cmp ecx, 4
jb 0x417fef
jmp 0x418220
sub eax, 0xd
je 0x417f72
sub eax, 0x1c
je 0x41819b
sub eax, 1
je 0x4181aa
push dword [ebp - 0x2b8]
or dword [ebp - 0x2fc], 0xffffffff
or dword [ebp - 0x300], 0xffffffff
or dword [ebp - 0x2e0], 0xffffffff
call fcn.00413412
test al, al
je 0x41806d
lea eax, [ebp - 0x2fc]
push eax
push 4
push dword [ebp - 0x2b8]
call fcn.0041716f
lea eax, [ebp - 0x300]
push eax
mov eax, dword [ebp - 0x2bc]
push 5
push dword [eax]
jmp 0x41808b
push dword [ebp - 0x2b8]
call fcn.004133ec
test al, al
je 0x418090
lea eax, [ebp - 0x2e0]
push eax
push 3
push dword [ebp - 0x2b8]
call fcn.0041716f
imul eax, dword [ebp - 0x2c0], 0x14
mov dword [ebp - 0x2b8], eax
mov eax, dword [eax + 0x42cee0]
test al, 0x10
je 0x418123
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x2d4], eax
call fcn.00413412
test al, al
je 0x4180de
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2fc]
test dword [eax + 0x42cee0], 0x80000
cmovne ecx, dword [ebp - 0x300]
jmp 0x4180fe
push dword [ebp - 0x2d4]
call fcn.004133ec
mov ecx, dword [ebp - 0x2c4]
test al, al
mov eax, dword [ebp - 0x2b8]
cmovne ecx, dword [ebp - 0x2e0]
test dword [eax + 0x42cee0], 0x80000
mov edx, str.CultureInfoLanguage
mov dword [ebp - 0x2c4], ecx
mov ecx, str.CultureInfoRegion
cmove ecx, edx
mov dword [ebp - 0x2c8], ecx
jmp 0x418190
test al, 0x20
je 0x41818a
cmp dword [ebp - 0x2d8], ebx
jne 0x418155
lea eax, [ebp - 0x2d8]
push eax
mov eax, dword [ebp - 0x2bc]
push 1
push dword [eax]
call fcn.00416d55
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
test eax, eax
js 0x418627
mov ecx, dword [ebp - 0x2d8]
mov eax, dword [0x457934]
add ecx, ecx
push 0
push dword [eax + ecx*8 + 4]
lea eax, [ebp - 0x1b0]
push 0x7f
push eax
call fcn.0041a445
test al, al
je 0x418627
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2b8]
mov eax, dword [eax + 0x42ced4]
jmp 0x417fd0
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c8], str.CalendarNameDisplay
cmp dword [ebp - 0x2d8], ebx
jne 0x4181e0
lea eax, [ebp - 0x2d8]
push eax
push 1
push dword [ebp - 0x2b8]
call fcn.00416d55
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
test eax, eax
js 0x418627
mov ecx, dword [ebp - 0x2d8]
mov eax, dword [0x457934]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 4]
jmp 0x417fd0
push eax
push dword [ecx*8 + 0x42d9ec]
lea eax, [ebp - 0x2b0]
push 0x7f
push eax
call fcn.0041a4c5
test al, al
je 0x418627
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b8], eax
test edi, edi
je 0x4182e8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4182e8
mov edx, dword [ebp - 0x2c0]
imul eax, edx, 0x14
test dword [eax + 0x42cee0], 0x2000
je 0x4182e2
test ecx, ecx
js 0x418288
push 0
push ecx
push edi
push 0
push dword [ebp - 0x2b8]
push dword [ebp - 0x2c8]
push dword [ebp - 0x2c4]
call fcn.004175d0
test eax, eax
js 0x41827b
lea ebx, [eax + 1]
mov dword [esi], ebx
jmp 0x418627
xor ebx, ebx
and dword [esi], ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c0]
cmp dword [ebp - 0x2f8], 0
jne 0x418627
cmp edx, 8
jg 0x418457
je 0x41841e
mov eax, edx
sub eax, 0
je 0x4183dc
sub eax, 1
je 0x4183ac
dec eax
sub eax, 1
je 0x4183dc
dec eax
sub eax, 1
jne 0x418479
mov eax, dword [ebp - 0x2e4]
push dword [ebp - 0x2b4]
push dword [eax + 4]
push esi
push ecx
jmp 0x41861f
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x330]
push ecx
push 0
push eax
push dword [ebp - 0x2c8]
push dword [ebp - 0x2c4]
call fcn.00417899
test eax, eax
js 0x41827f
mov ecx, dword [ebp - 0x330]
mov edx, 0x4000
cmp dword [ecx], ebx
jne 0x41833a
imul eax, dword [ebp - 0x2c0], 0x14
test dword [eax + 0x42cee0], edx
jne 0x41833a
lea eax, [ebp - 0x330]
push eax
call fcn.00417a60
jmp 0x41827f
imul eax, dword [ebp - 0x2c0], 0x14
mov eax, dword [eax + 0x42cee0]
test eax, 0x2000
je 0x418362
push dword [ebp - 0x2b4]
push dword [ecx]
push esi
push dword [ebp + 0xc]
push edi
call fcn.00412d6e
jmp 0x418399
test eax, 0x8000
je 0x41837a
push dword [ecx]
push dword [ebp + 0xc]
push edi
call fcn.0041a691
mov ebx, eax
mov dword [esi], ebx
jmp 0x41839b
test edx, eax
je 0x41839b
push dword [ebp - 0x2b4]
push 0
push 0
push ecx
push dword [ebp - 0x32c]
push esi
push dword [ebp + 0xc]
push edi
call fcn.0041a55f
mov ebx, eax
lea eax, [ebp - 0x330]
push eax
call fcn.00417a60
jmp 0x418627
mov eax, dword [ebp - 0x2bc]
push dword [eax]
call fcn.0041352c
test eax, eax
je 0x418627
push dword [ebp + 0x1c]
push dword [ebp - 0x2bc]
push esi
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
call fcn.00418cb9
jmp 0x418625
lea eax, [ebp - 0x330]
push eax
push 0
push dword [ebp - 0x2b8]
push str.CultureNameDisplay
push dword [ebp - 0x2c4]
call fcn.00417899
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx], eax
test eax, eax
js 0x418627
mov eax, dword [ebp - 0x330]
cmp dword [eax], 0
je 0x41839b
push ecx
push dword [eax]
jmp 0x418356
mov eax, dword [ebp - 0x2e4]
push dword [eax + 4]
lea eax, [ebp - 0x318]
push eax
call fcn.0041a782
cmp dword [ebp - 0x314], 0
jbe 0x418610
push dword [ebp - 0x2b4]
push dword [ebp - 0x314]
push dword [ebp - 0x318]
jmp 0x418600
mov eax, edx
sub eax, 0xb
je 0x4185c2
sub eax, 3
je 0x41857a
sub eax, 4
je 0x41856a
sub eax, 0x72
je 0x4184d2
and dword [ebp - 0x2f8], 0
test dword [ebp + 0x1c], 0x7000
jne 0x418627
lea eax, [ebp - 0x2f8]
push eax
push edx
push dword [ebp - 0x2bc]
call fcn.00418fc1
test al, al
je 0x418627
push dword [ebp - 0x2b4]
mov eax, dword [ebp + 0x1c]
or eax, 0x1000
push eax
push dword [ebp - 0x2c0]
push dword [ebp - 0x2bc]
push esi
push dword [ebp + 0xc]
push edi
call fcn.00417ac3
jmp 0x418625
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.0041716f
mov eax, dword [ebp - 0x2e0]
cmp eax, 0xffffffff
je 0x418551
cmp eax, dword [ebp - 0x2c4]
je 0x418551
mov esi, dword [ebp - 0x2bc]
lea edi, [ebp - 0x310]
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 - 0x2cc]
mov edi, dword [ebp - 0x2d0]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x310]
push eax
push esi
push dword [ebp + 0xc]
push edi
call fcn.00417ac3
mov ebx, eax
test ebx, ebx
jne 0x418627
cmp dword [esi], 0
jne 0x418627
push dword [ebp - 0x2b4]
push 0x42da08
jmp 0x41861b
push dword [ebp - 0x2b4]
push 0x428558
jmp 0x4182db
cmp dword [ebp - 0x2dc], 0
je 0x418599
push dword [ebp - 0x2b4]
push esi
push ecx
push edi
push dword [ebp - 0x2dc]
call fcn.00416b0b
jmp 0x41860a
mov eax, dword [ebp - 0x2e4]
push dword [eax + 4]
lea eax, [ebp - 0x318]
push eax
call fcn.0041a782
mov ecx, dword [ebp - 0x310]
test ecx, ecx
je 0x418610
push dword [ebp - 0x2b4]
push 4
jmp 0x4185f6
mov eax, dword [ebp - 0x2e4]
push dword [eax + 4]
lea eax, [ebp - 0x318]
push eax
call fcn.0041a782
mov ecx, dword [ebp - 0x30c]
test ecx, ecx
je 0x418610
cmp dword [ebp - 0x304], 0
jbe 0x418610
push dword [ebp - 0x2b4]
push dword [ebp - 0x304]
mov eax, dword [ebp - 0x318]
lea eax, [eax + ecx*2]
push eax
push esi
push dword [ebp + 0xc]
push edi
call fcn.00418bc8
mov ebx, eax
test ebx, ebx
jne 0x418627
push dword [ebp - 0x2b4]
push 0x428558
push esi
push dword [ebp + 0xc]
push edi
call fcn.00412d6e
mov ebx, eax
mov esi, dword [ebp - 0x2b4]
cmp dword [esi], 0
jl 0x41863c
test ebx, ebx
jne 0x41863c
mov dword [esi], 0x80004005
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424816
mov esp, ebp
pop ebp
ret 0x1c