Function at 0x412470
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46df80
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc8
call fcn.0042f713
push 0xc8
mov edi, eax
push 0
push edi
mov dword [ebp - 0x48], edi
call fcn.00447720
add esp, 0x10
mov dword [edi], 0
lea esi, [edi + 4]
mov ecx, edi
mov dword [esi], 0
call fcn.00410ed0
mov ecx, edi
call fcn.00410fa0
mov ecx, edi
call fcn.00410ed0
push 0x47fc80
push str.resources_roofs.xml
call fcn.0044ed3b
add esp, 8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], fcn.00410ca0
push esi
sub esp, 8
mov dword [ebp - 4], 0
mov edx, dword [edi]
lea ecx, [ebp - 0x38]
push eax
call fcn.00410ba0
add esp, 0x10
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x412529
push eax
call fcn.00410ca0
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], 0
je 0x412569
push str.could_not_open_the_roofs_file
push str.CityGenerator
push 0x45
call fcn.00426650
mov ecx, eax
call fcn.004266c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f1ff
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
push str.Roofs
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
movups xmmword [ebp - 0x3c], xmm0
call fcn.00410ce0
mov ecx, eax
call fcn.00410cb0
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x44], esi
cmp esi, dword [ebp - 0x34]
jne 0x4125a2
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x38], eax
jne 0x4125a2
xor al, al
jmp 0x4125a4
mov al, 1
test al, al
je 0x41254e
test esi, esi
jne 0x4125c3
push 0x19c1
push str.d:projectsgraphicscitycommonpugipugixml.cpp
push str._wrap._root
call fcn.00453f1a
add esp, 0xc
push str.building
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x14], esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00410d70
mov edx, dword [eax]
test edx, edx
je 0x4125e4
mov edx, dword [edx + 8]
test edx, edx
jne 0x4125e9
mov edx, 0x47f195
mov eax, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412600
sub eax, edi
lea ecx, [ebp - 0x2c]
push eax
push edx
call fcn.00402250
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov ecx, 0x48f6cc
call fcn.0041b010
mov edi, dword [ebp - 0x14]
cmp edi, dword [0x48f6cc]
je 0x4126e9
cmp dword [edi + 0x24], 0x10
lea ecx, [edi + 0x10]
jb 0x41264e
mov ecx, dword [edi + 0x10]
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov eax, dword [edi + 0x20]
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov esi, eax
cmp dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x44]
cmovb eax, dword [ebp - 0x14]
sub eax, 4
mov dword [ebp - 0x40], eax
jb 0x41268d
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x412692
mov eax, dword [ebp - 0x40]
add edx, 4
add ecx, 4
sub eax, 4
mov dword [ebp - 0x40], eax
jae 0x412676
cmp eax, 0xfffffffc
je 0x4126c9
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x4126c2
cmp dword [ebp - 0x40], 0xfffffffd
je 0x4126c9
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4126c2
cmp dword [ebp - 0x40], 0xfffffffe
je 0x4126c9
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x4126c2
cmp dword [ebp - 0x40], 0xffffffff
je 0x4126c9
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x4126c9
sbb eax, eax
or eax, 1
jmp 0x4126cb
xor eax, eax
test eax, eax
jne 0x4126e2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp eax, ecx
jbe 0x4126de
or eax, 0xffffffff
jmp 0x4126e2
sbb eax, eax
neg eax
shr eax, 0x1f
test al, al
je 0x412716
lea eax, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push ecx
mov ecx, 0x48f6cc
call fcn.00421b30
push eax
add eax, 0x10
mov ecx, 0x48f6cc
push eax
push edi
lea eax, [ebp - 0x48]
push eax
call fcn.00421bc0
mov edi, dword [ebp - 0x48]
mov dword [edi + 0x28], esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x412750
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412746
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412773
push edx
push ecx
call fcn.0042f743
add esp, 8
test esi, esi
jne 0x41276b
push 0x19cd
push str.d:projectsgraphicscitycommonpugipugixml.cpp
push str._wrap._root
call fcn.00453f1a
add esp, 0xc
mov esi, dword [esi + 0x18]
jmp 0x41258e
call fcn.0044b2e7
int3