Function at 0x50a540
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x626940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x63bc38
xor ebp, ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov word [esp + 0x2c], bp
mov edi, dword [esp + 0x94]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x90], 1
call fcn.005b7790
mov eax, dword [esp + 0x28]
cmp eax, ebp
jne 0x50a5a7
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x98]
mov edx, dword [esi + 0xf0]
push eax
push ecx
push ebp
push edx
call fcn.0044f300
mov esi, dword [edi + 0x488]
mov edi, dword [edi + 0x48c]
mov eax, esi
add esp, 0x10
or eax, edi
je 0x50aa0c
push ebp
push 0x400
push edi
push esi
call fcn.005e7110
mov dword [esp + 0x14], eax
mov ecx, esi
cdq
mov ebx, eax
mov eax, edi
sub ecx, ebx
push ebp
sbb eax, edx
push 0x400
push eax
push ecx
mov dword [esp + 0x2c], edx
call fcn.005e7060
mov ebp, eax
and ebp, 0x800003ff
jns 0x50a615
dec ebp
or ebp, 0xfffffc00
inc ebp
mov eax, ebp
mov ecx, esi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
sub ecx, ebx
mov ebx, dword [esp + 0x1c]
push 0
sbb eax, ebx
push 0x100000
push eax
push ecx
call fcn.005e7060
mov ebx, eax
and ebx, 0x800003ff
jns 0x50a64b
dec ebx
or ebx, 0xfffffc00
inc ebx
push 0
push 0x40000000
push edi
push esi
call fcn.005e7060
lea ecx, [esp + 0x10]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x50a69f
mov edi, 0x6c9158
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x50a76d
cmp ebx, 0x3e7
jg 0x50a76d
test ebx, ebx
jne 0x50a727
cmp ebp, 0x3e7
jg 0x50a727
test ebp, ebp
je 0x50a705
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x6f6fd0]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x14]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push ebp
jmp 0x50a7a6
mov eax, dword [0x6f6fcc]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x3c]
push str._d___s
push edx
call fcn.005e5bb8
add esp, 0x10
jmp 0x50a7b8
lea ebp, [ebp + ebp*4]
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, dword [0x6f6fd4]
push eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
lea eax, [esp + 0x38]
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x18]
push edx
push ebx
push str._d_s_02d___s
push eax
jmp 0x50a7b0
lea ebx, [ebx + ebx*4]
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x6f6fd8]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x14]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push esi
lea edx, [esp + 0x44]
push str._d_s_02d___s
push edx
call fcn.005e5bb8
add esp, 0x18
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x98]
lea ecx, [esp + 0x34]
lea ebp, [eax + 0xd4]
push ecx
push 1
push esi
mov ecx, ebp
mov dword [esp + 0x20], ebp
call fcn.005fbb62
mov ebx, dword [esp + 0x94]
cmp dword [ebx + 0x8d4], 3
jne 0x50a7f7
mov edx, dword [0x6f7174]
jmp 0x50a8d7
mov eax, dword [ebx + 0x490]
mov ecx, dword [ebx + 0x494]
or eax, ecx
je 0x50a8a2
lea ecx, [esp + 0x10]
push 3
push ecx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x50a84e
mov edi, 0x6c9158
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x98]
fild qword [ebx + 0x490]
fmul dword [0x63db40]
fild qword [ebx + 0x488]
fdivp st(1)
fld st(0)
call fcn.005e5674
mov edi, eax
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
fsubr st(1)
fmul dword [0x63db40]
call fcn.005e5674
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
lea edx, [esp + 0x40]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.005e5bb8
add esp, 0x14
lea eax, [esp + 0x34]
push eax
jmp 0x50a8d8
mov eax, dword [ebx + 0xa4c]
cmp eax, 0x7565
jne 0x50a8b8
mov ecx, dword [0x6f6e44]
push ecx
jmp 0x50a8d8
cmp eax, 0x7573
jne 0x50a8c6
push str.Not_modified
jmp 0x50a8d8
cmp eax, 0x7540
je 0x50a8e2
test eax, eax
je 0x50a8e2
mov edx, dword [0x6f6e3c]
push edx
push 2
push esi
mov ecx, ebp
call fcn.005fbb62
mov eax, dword [ebx + 0x4a0]
test eax, eax
je 0x50aa0c
cmp dword [ebx + 0x8d4], 3
je 0x50aa0c
mov ecx, dword [ebx + 0x488]
mov esi, dword [ebx + 0x490]
mov edx, dword [ebx + 0x494]
sub ecx, esi
mov esi, dword [ebx + 0x48c]
sbb esi, edx
cdq
push edx
push eax
push esi
push ecx
call fcn.005e7060
mov esi, edx
mov edi, eax
test esi, esi
jg 0x50a94a
jl 0x50a931
test edi, edi
jae 0x50a94a
mov edx, dword [0x6f70f0]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.005e5bb8
add esp, 8
jmp 0x50a9f6
push 0
push 0x3c
push esi
push edi
call fcn.005e7110
mov ebx, eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.005e7060
push 0
push 0x3c
push edx
push eax
call fcn.005e7110
push 0
push 0xe10
push esi
push edi
mov ebp, eax
call fcn.005e7060
test edx, edx
jg 0x50a9e0
jl 0x50a993
cmp eax, 0x2710
ja 0x50a9e0
test eax, eax
je 0x50a9af
mov ecx, dword [0x6f7148]
push ebp
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.005e5bb8
add esp, 0x10
jmp 0x50a9f2
test ebp, ebp
push ebx
je 0x50a9ca
mov eax, dword [0x6f7144]
push ebp
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.005e5bb8
add esp, 0x10
jmp 0x50a9f2
mov edx, dword [0x6f7140]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.005e5bb8
add esp, 0xc
jmp 0x50a9f2
lea ecx, [esp + 0x44]
push 0x6c4f98
push ecx
call fcn.005e5bb8
add esp, 8
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x98]
lea edx, [esp + 0x44]
push edx
push 3
push eax
mov ecx, ebp
call fcn.005fbb62
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], 0
call fcn.00401070
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 8