Function at 0x401f04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [ebp - 0x1c], 0
jmp 0x402467
mov dword [ebp - 0x20], 0
jmp 0x40244f
mov dword [esp + 4], str.Location
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x401f74
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
mov ecx, eax
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._strcmp
mov dword [ebp - 0x24], eax
jmp 0x40226a
mov dword [esp + 4], str.City
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x401fc4
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
lea edx, [eax + 0x19]
mov ecx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, ecx
add eax, 0x19
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
mov dword [ebp - 0x24], eax
jmp 0x40226a
mov dword [esp + 4], str.Price
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x402070
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, edx
add eax, 0x2d
mov dword [esp], eax
call dbg.atoll
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
add eax, 0x2d
mov dword [esp], eax
call dbg.atoll
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, 1
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x34]
jg 0x40203f
cmp edx, dword [ebp - 0x34]
jl 0x40203a
cmp eax, dword [ebp - 0x38]
ja 0x40203f
mov ecx, 0
movzx ecx, cl
mov ebx, 1
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x34]
jl 0x402061
cmp edx, dword [ebp - 0x34]
jg 0x40205c
cmp eax, dword [ebp - 0x38]
jb 0x402061
mov ebx, 0
movzx eax, bl
sub ecx, eax
mov eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x40226a
mov dword [esp + 4], str.Rooms
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4020e6
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, edx
add eax, 0x37
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x3c], eax
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
add eax, 0x37
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
setg al
movzx edx, al
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
setl al
movzx eax, al
sub edx, eax
mov eax, edx
mov dword [ebp - 0x24], eax
jmp 0x40226a
mov dword [esp + 4], str.Bathroom
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40215c
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, edx
add eax, 0x3a
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x44], eax
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
add eax, 0x3a
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x48]
setg al
movzx edx, al
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x48]
setl al
movzx eax, al
sub edx, eax
mov eax, edx
mov dword [ebp - 0x24], eax
jmp 0x40226a
mov dword [esp + 4], str.Carpark
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4021d2
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, edx
add eax, 0x3d
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x4c], eax
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
add eax, 0x3d
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
setg al
movzx edx, al
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
setl al
movzx eax, al
sub edx, eax
mov eax, edx
mov dword [ebp - 0x24], eax
jmp 0x40226a
mov dword [esp + 4], str.Type
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40221f
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
lea edx, [eax + 0x40]
mov ecx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, ecx
add eax, 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
mov dword [ebp - 0x24], eax
jmp 0x40226a
mov dword [esp + 4], str.Furnish
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40226a
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
lea edx, [eax + 0x4f]
mov ecx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, ecx
add eax, 0x4f
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
cmp al, 0x61
jne 0x40235d
cmp dword [ebp - 0x24], 0
jle 0x40235d
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add edx, eax
lea eax, [ebp - 0xae]
mov ebx, edx
mov edx, 0x5e
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
lea ecx, [edx + eax]
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add edx, eax
mov eax, ecx
mov ebx, edx
mov edx, 0x5e
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add eax, edx
mov edx, eax
lea eax, [ebp - 0xae]
mov ecx, 0x5e
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + ecx - 4]
mov dword [edx + ecx - 4], ebx
lea ebx, [edx + 4]
and ebx, 0xfffffffc
sub edx, ebx
sub eax, edx
add ecx, edx
and ecx, 0xfffffffc
shr ecx, 2
mov edx, ecx
mov edi, ebx
mov esi, eax
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x40244b
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
cmp al, 0x64
jne 0x40244b
cmp dword [ebp - 0x24], 0
jns 0x40244b
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
add edx, eax
lea eax, [ebp - 0xae]
mov ebx, edx
mov edx, 0x5e
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
add eax, 1
imul eax, eax, 0x5e
lea ecx, [edx + eax]
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add edx, eax
mov eax, ecx
mov ebx, edx
mov edx, 0x5e
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x406020]
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x5e
add eax, edx
mov edx, eax
lea eax, [ebp - 0xae]
mov ecx, 0x5e
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + ecx - 4]
mov dword [edx + ecx - 4], ebx
lea ebx, [edx + 4]
and ebx, 0xfffffffc
sub edx, ebx
sub eax, edx
add ecx, edx
and ecx, 0xfffffffc
shr ecx, 2
mov edx, ecx
mov edi, ebx
mov esi, eax
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
add dword [ebp - 0x20], 1
mov eax, dword [0x406024]
sub eax, dword [ebp - 0x1c]
sub eax, 1
cmp eax, dword [ebp - 0x20]
jg 0x401f28
add dword [ebp - 0x1c], 1
mov eax, dword [0x406024]
sub eax, 1
cmp eax, dword [ebp - 0x1c]
jg 0x401f1c
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret