Function at 0x50b780
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x6274da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x8c], 0x634d50
xor ebp, ebp
mov dword [esp + 0xd8], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebp
mov word [esp + 0x44], bp
mov edi, dword [esp + 0xe0]
lea eax, [esp + 0x40]
push eax
mov ecx, edi
mov byte [esp + 0xdc], 1
call fcn.005b97b0
mov eax, dword [esp + 0x40]
cmp eax, ebp
jne 0x50b7ed
lea eax, [esp + 0x44]
mov ebx, dword [esp + 0xe4]
mov ecx, dword [esi + 0xf0]
push eax
push ebx
push ebp
push ecx
call fcn.0044f770
mov esi, dword [edi + 0x488]
mov edi, dword [edi + 0x48c]
mov edx, esi
add esp, 0x10
or edx, edi
je 0x50be49
push ebp
push 0x400
push edi
push esi
call fcn.005e9130
mov dword [esp + 0x3c], eax
mov ecx, esi
cdq
mov dword [esp + 0x14], eax
sub ecx, eax
mov eax, edi
push ebp
sbb eax, edx
push 0x400
push eax
push ecx
mov dword [esp + 0x28], edx
call fcn.005e9080
mov ebp, eax
and ebp, 0x800003ff
jns 0x50b85d
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
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x18]
sbb eax, edx
push 0
push 0x100000
push eax
push ecx
call fcn.005e9080
and eax, 0x800003ff
jns 0x50b893
dec eax
or eax, 0xfffffc00
inc eax
push 0
push 0x40000000
push edi
push esi
mov dword [esp + 0x40], eax
call fcn.005e9080
lea ecx, [esp + 0x20]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x50b8eb
mov edi, 0x6a5160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
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 + 0x14]
mov edi, dword [esp + 0x30]
test esi, esi
jne 0x50b9c3
cmp edi, 0x3e7
jg 0x50b9c3
test edi, edi
jne 0x50b97a
cmp ebp, 0x3e7
jg 0x50b97a
test ebp, ebp
je 0x50b955
mov eax, dword [esp + 0x3c]
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 [0x6d2ff0]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x24]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push ebp
jmp 0x50b9fc
mov eax, dword [0x6d2fec]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x98]
push str._d___s
push edx
call fcn.005e7bd3
add esp, 0x10
jmp 0x50ba11
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 [0x6d2ff4]
push eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
lea eax, [esp + 0x94]
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x28]
push edx
push edi
push str._d_s_02d___s
push eax
jmp 0x50ba09
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x6d2ff8]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x24]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push esi
lea edx, [esp + 0xa0]
push str._d_s_02d___s
push edx
call fcn.005e7bd3
add esp, 0x18
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x18]
mov esi, dword [eax + 0xf0]
call fcn.00402380
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov byte [esp + 0xd8], 2
rep stosd dword es:[edi], eax
mov eax, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
call fcn.00402400
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], eax
call fcn.00402400
push eax
call fcn.005e71bf
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 4
lea edx, [esp + 0x4c]
inc eax
push edx
push ebx
push 0x1074
push esi
mov dword [esp + 0x74], eax
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 1
call fcn.00401070
mov esi, dword [esp + 0xe0]
cmp dword [esi + 0x8d4], 3
jne 0x50bb42
mov eax, dword [esp + 0x10]
mov edx, dword [0x6d3194]
push edx
mov ecx, dword [eax + 0xf0]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x34]
call fcn.00402380
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov byte [esp + 0xd8], 3
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 2
call fcn.00402400
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], eax
call fcn.00402400
push eax
call fcn.005e71bf
mov ecx, dword [esp + 0x18]
add esp, 4
inc eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x4c]
push eax
push ebx
push 0x1074
push ecx
call ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], 1
call fcn.00401070
jmp 0x50bde2
mov edx, dword [esi + 0x490]
mov eax, dword [esi + 0x494]
or edx, eax
je 0x50bc7d
lea eax, [esp + 0x30]
push 8
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x50bb99
mov edi, 0x6a5160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
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 + 0xe0]
fild qword [esi + 0x490]
fmul dword [0x636658]
fild qword [esi + 0x488]
fdivp st(1)
fld st(0)
call fcn.005e7794
mov edi, eax
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
fsubr st(1)
fmul dword [0x636658]
call fcn.005e7794
lea ecx, [esp + 0x30]
push eax
push ecx
push edi
lea edx, [esp + 0x9c]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.005e7bd3
mov eax, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x90]
mov ecx, dword [eax + 0xf0]
push edx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x28]
call fcn.00402380
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov byte [esp + 0xd8], 4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 2
call fcn.00402400
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], eax
call fcn.00402400
push eax
call fcn.005e71bf
mov ecx, dword [esp + 0x18]
add esp, 4
inc eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x4c]
push eax
push ebx
push 0x1074
push ecx
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0xd8], 1
call fcn.00401070
jmp 0x50bde2
mov eax, dword [esi + 0xa4c]
cmp eax, 0x7565
jne 0x50bd21
mov edx, dword [esp + 0x10]
mov ecx, dword [0x6d2e64]
push ecx
lea ecx, [esp + 0x28]
mov eax, dword [edx + 0xf0]
mov dword [esp + 0x18], eax
call fcn.00402380
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov byte [esp + 0xd8], 5
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 2
call fcn.00402400
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], eax
call fcn.00402400
push eax
call fcn.005e71bf
add esp, 4
inc eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x14]
push edx
push ebx
push 0x1074
push eax
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0xd8], 1
call fcn.00401070
jmp 0x50bde2
cmp eax, 0x7573
jne 0x50bdba
mov ecx, dword [esp + 0x10]
push str.Not_modified
mov edx, dword [ecx + 0xf0]
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], edx
call fcn.00402380
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
mov byte [esp + 0xd8], 6
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 2
call fcn.00402400
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], eax
call fcn.00402400
push eax
call fcn.005e71bf
mov ecx, dword [esp + 0x18]
add esp, 4
inc eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x4c]
push eax
push ebx
push 0x1074
push ecx
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0xd8], 1
call fcn.00401070
jmp 0x50bde2
cmp eax, 0x7540
je 0x50bde2
test eax, eax
je 0x50bde2
mov edx, dword [0x6d2e5c]
mov eax, dword [esp + 0x10]
push edx
push ebx
mov ecx, dword [eax + 0xf0]
push 2
push ecx
call fcn.004a6540
add esp, 0x10
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x50be49
cmp dword [esi + 0x8d4], 3
je 0x50be49
mov ecx, dword [esi + 0x488]
mov edi, dword [esi + 0x48c]
mov ebp, dword [esi + 0x494]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esi + 0x490]
sub ecx, edx
cdq
sbb edi, ebp
push edx
push eax
push edi
push ecx
call fcn.005e9080
push edx
push eax
lea ecx, [esp + 0x98]
call fcn.0045e780
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
push ebx
mov ecx, dword [eax + 0xf0]
push 3
push ecx
call fcn.004a6540
add esp, 0x10
lea ecx, [esp + 0x40]
mov byte [esp + 0xd8], 0
call fcn.00401070
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret 8