Function at 0x4b67b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
mov ebx, ecx
push edi
mov edi, str.city_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.gizmo_file
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x58]
sub edi, ecx
mov eax, ecx
mov dword [ebp + 8], esi
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push str..gizmo
push str.city
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.005418e0
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4b691c
push edi
lea ecx, [ebp - 0x198]
push 0x100
push ecx
call fcn.00540f60
add esp, 0xc
test eax, eax
je 0x4b691c
cmp dword [ebx + 0x20], 9
je 0x4b6b7c
mov al, byte [ebp - 0x198]
lea esi, [ebp - 0x198]
test al, al
je 0x4b6899
movsx edx, byte [esi]
push edx
call fcn.005683e0
add esp, 4
test eax, eax
jne 0x4b688c
movsx eax, byte [esi]
push eax
call fcn.005684b0
add esp, 4
test eax, eax
je 0x4b6896
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4b686c
jmp 0x4b6899
mov byte [esi], 0
mov eax, dword [ebx + 0x20]
lea ecx, [ebp - 0x198]
push edi
push ecx
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*8]
shl edx, 1
sub edx, eax
lea ecx, [ebx + edx*4 + 0x24]
call fcn.004b6fa0
test eax, eax
je 0x4b6b8e
mov eax, dword [ebx + 0x20]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*8]
shl ecx, 1
sub ecx, eax
inc eax
mov dword [ebx + 0x20], eax
lea ecx, [ebx + ecx*4 + 0x24]
push ecx
mov ecx, ebx
call fcn.00510de0
push edi
lea edx, [ebp - 0x198]
push 0x100
push edx
call fcn.00540f60
add esp, 0xc
test eax, eax
je 0x4b6ba4
push edi
lea eax, [ebp - 0x198]
push 0x100
push eax
call fcn.00540f60
add esp, 0xc
test eax, eax
jne 0x4b6852
mov ecx, dword [ebp + 0xc]
mov edx, 1
mov dword [ebx + 0x2620], ecx
mov dword [ebx + 0x2648], edx
mov eax, dword [0x66839c]
mov ecx, dword [0x6683bc]
test eax, eax
jne 0x4b6a4c
test ecx, ecx
je 0x4b6a50
mov eax, dword [ebx + 0x20]
xor ecx, ecx
test eax, eax
jle 0x4b6a40
lea eax, [ebx + 0x74]
lea edx, [eax + 0x48]
inc ecx
lea esi, [eax + 0x210]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edx]
add eax, 0x434
mov edi, dword [esi]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [esi + 4]
mov dword [ebp - 8], ecx
fld dword [ebp - 8]
mov edx, dword [edx + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edx
fsub dword [ebp - 0x14]
fld dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
fsub dword [ebp - 0x10]
fld dword [ebp - 0xc]
fsub dword [ebp - 0x18]
fxch st(1)
fst dword [ebp + 8]
fxch st(1)
fld st(2)
fmul st(3)
fld dword [ebp - 0x18]
fxch st(3)
fmul dword [ebp + 8]
fld dword [ebp - 0x14]
fld dword [ebp - 0x10]
fxch st(5)
fsub dword [ebp - 0xc]
fmul dword [0x593f38]
fsubr dword [ebp - 0xc]
fstp dword [eax - 0x43c]
fsub dword [ebp - 8]
fxch st(4)
fsub dword [ebp - 4]
fxch st(3)
fst dword [ebp + 8]
fmul dword [ebp + 8]
fxch st(1)
faddp st(2)
fxch st(3)
fmul dword [0x593f38]
fxch st(2)
fmul dword [0x593f38]
fxch st(2)
fsubr dword [ebp - 8]
fxch st(3)
faddp st(1)
fxch st(1)
fsubr dword [ebp - 4]
fxch st(2)
fstp dword [eax - 0x438]
fmul dword [0x593f3c]
fxch st(1)
fstp dword [eax - 0x434]
mov dword [eax - 0x444], 1
fstp dword [eax - 0x430]
fstp st(0)
fld qword [0x5d0264]
fstp dword [eax - 0x440]
cmp ecx, dword [ebx + 0x20]
jl 0x4b695b
mov dword [ebx + 0x2600], 0x3ea0d97c
jmp 0x4b6aa4
test ecx, ecx
jne 0x4b6a79
mov eax, dword [ebx + 0x20]
xor ecx, ecx
test eax, eax
jle 0x4b6aa4
lea eax, [ebx + 0x420]
mov dword [eax - 8], edx
inc ecx
fld qword [0x5d0264]
fstp dword [eax]
mov esi, dword [ebx + 0x20]
add eax, 0x434
cmp ecx, esi
jl 0x4b6a5f
jmp 0x4b6aa4
test eax, eax
je 0x4b6aa4
mov eax, dword [ebx + 0x20]
xor ecx, ecx
test eax, eax
jle 0x4b6aa4
lea eax, [ebx + 0x420]
mov dword [eax - 8], edx
inc ecx
fld qword [0x5d0264]
fstp dword [eax]
mov esi, dword [ebx + 0x20]
add eax, 0x434
cmp ecx, esi
jl 0x4b6a8c
mov edx, dword [0x6683bc]
lea eax, [edx - 1]
cmp eax, 3
ja case.default.0x4b6ab2
jmp dword [eax*4 + 0x4b6bbc]
mov eax, dword [0x6683c0]
lea ecx, [ebp - 0x68]
push eax
push str.race_d
push ecx
call fcn.00566480
add esp, 0xc
jmp 0x4b6b22
mov edx, dword [0x6683c0]
lea eax, [ebp - 0x68]
push edx
push str.circuit_d
push eax
call fcn.00566480
add esp, 0xc
jmp 0x4b6b22
mov ecx, dword [0x6683c0]
lea edx, [ebp - 0x68]
push ecx
push str.blitz_d
push edx
call fcn.00566480
add esp, 0xc
jmp 0x4b6b22
lea eax, [ebp - 0x68]
push str.copsnrobbers
push eax
jmp 0x4b6b1a
lea ecx, [ebp - 0x68]
push str.roam
push ecx
call fcn.00566480
add esp, 8
mov eax, dword [0x66839c]
test eax, eax
je 0x4b6b40
lea edi, [ebp - 0x68]
or ecx, 0xffffffff
xor eax, eax
mov dx, word [str.m________]
repne scasb al, byte es:[edi]
mov word [edi - 1], dx
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.00510cf0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x28]
mov eax, dword [ebx + 0x20]
xor esi, esi
test eax, eax
jle 0x4b6b73
lea edi, [ebx + 0x24]
mov ecx, edi
call fcn.004b6f70
mov eax, dword [ebx + 0x20]
inc esi
add edi, 0x434
cmp esi, eax
jl 0x4b6b5e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.Reached_max_number_of_bridges
call fcn.00558640
add esp, 4
jmp 0x4b691c
push 0x5b06dc
call fcn.00558660
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.Error_reading_bridge_data_file
call fcn.00558660
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10