Function at 0x10020480
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10105a75
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x1015d3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [str.buildingflags]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x58], 0x2000
mov dword [ebp - 0x74], 0x1000
lea edx, [ecx + 1]
mov dword [ebp - 0x78], 0x800
mov dword [ebp - 0x7c], 0x400
mov dword [ebp - 0x80], 0x200
mov dword [ebp - 0x84], 0x100
mov dword [ebp - 0x88], 0x80
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x90], 0x20
mov dword [ebp - 0x94], 0x10
mov dword [ebp - 0x98], 8
mov dword [ebp - 0x9c], 4
mov dword [ebp - 0xa0], 2
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 0x70], ecx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020546
lea eax, [ebp - 0x58]
sub ecx, edx
push eax
push str.VENUE_DIFF_VERY_HARD
lea eax, [ebp - 0x74]
mov dword [ebp - 0x6c], ecx
push eax
push str.VENUE_DIFF_HARD
lea eax, [ebp - 0x78]
push eax
push str.VENUE_DIFF_MED
lea eax, [ebp - 0x7c]
push eax
push str.VENUE_DIFF_EASY
lea eax, [ebp - 0x80]
push eax
push str.VENUE_DIFF_VERY_EASY
lea eax, [ebp - 0x84]
push eax
push str.IS_SAFEHOUSE
lea eax, [ebp - 0x88]
push eax
push str.IS_QUACK_OFFICE
lea eax, [ebp - 0x8c]
push eax
push str.HAS_RACKET_NODE
lea eax, [ebp - 0x90]
push eax
push str.IS_COMPOUND_BUILDING
lea eax, [ebp - 0x94]
push eax
push str.IGNORE_IN_PAUSE_MENU
lea eax, [ebp - 0x98]
push eax
push str.IGNORE_BOMBS
lea eax, [ebp - 0x9c]
push eax
push str.LOCKED_ENTRANCES
lea eax, [ebp - 0xa0]
push eax
push str.MAKE_DEFAULT_COLL
lea eax, [ebp - 0xa4]
push eax
push str.ALWAYS_OPEN
lea eax, [ebp - 0xa8]
push eax
push 0x1011505c
lea eax, [ebp - 0x70]
push eax
lea ecx, [edi + 4]
call fcn.10016c00
mov ecx, dword [str.buildinginternalflags]
mov dword [ebp - 0xa8], 0x80000000
mov dword [ebp - 0xa4], 0x40000000
mov dword [ebp - 0xa0], 0x20000000
mov dword [ebp - 0x9c], 0x10000000
lea edx, [ecx + 1]
mov dword [ebp - 0x98], 0x8000000
mov dword [ebp - 0x94], 0x4000000
mov dword [ebp - 0x90], 0x2000000
mov dword [ebp - 0x8c], 0x1000000
mov dword [ebp - 0x88], 0x800000
mov dword [ebp - 0x84], 0x400000
mov dword [ebp - 0x80], 0x200000
mov dword [ebp - 0x7c], 0x100000
mov dword [ebp - 0x78], 0x20000
mov dword [ebp - 0x74], 0x10000
mov dword [ebp - 0x58], 0x8000
mov dword [ebp - 0xac], 0x4000
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x4c], ecx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100206a7
lea eax, [ebp - 0xa8]
sub ecx, edx
push eax
push str.PENDING_REBUILT
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x48], ecx
push eax
push str.OWNER_WAS_KILLED
lea eax, [ebp - 0xa0]
push eax
push str.OWNER_DEAD
lea eax, [ebp - 0x9c]
push eax
push str.SAFE_WAS_DESTROYED
lea eax, [ebp - 0x98]
push eax
push str.ENTITY_IS_ACTIVE
lea eax, [ebp - 0x94]
push eax
push str.FORCED_OPEN_BY_MISSION
lea eax, [ebp - 0x90]
push eax
push str.OWNER_HAS_BEEN_SQUEEZED
lea eax, [ebp - 0x8c]
push eax
push str.VENUE_DISCOVERED
lea eax, [ebp - 0x88]
push eax
push str.FLAG_ON_FIRE
lea eax, [ebp - 0x84]
push eax
push str.UNDER_REPAIR
lea eax, [ebp - 0x80]
push eax
push str.REOPEN_EVENT_SCHEDULED
lea eax, [ebp - 0x7c]
push eax
push str.FORCED_CLOSED_BY_MISSION
lea eax, [ebp - 0x78]
push eax
push str.BANK_WAS_HEISTED
lea eax, [ebp - 0x74]
push eax
push str.BANK_HEIST
lea eax, [ebp - 0x58]
push eax
push str.DISPLAYED_VENUE_TEXTBOX
lea eax, [ebp - 0xac]
push eax
push str.IS_BANK
lea eax, [ebp - 0x6c]
push eax
push 0x1011505c
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 4]
call fcn.10016e20
mov edx, dword [str.buildingmanager]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100207a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003780
sub esp, 0xc
mov dword [ebp - 0x4c], 0x1010101
mov eax, esp
mov dword [ebp - 0x48], 0x1010101
movq xmm0, qword [ebp - 0x4c]
mov cl, 1
mov dword [ebp - 4], 0
push dword [edi + 0x14]
movq qword [eax], xmm0
mov byte [eax + 8], cl
call fcn.10018fe0
mov esi, dword [edi + 0x14]
neg eax
push eax
push esi
mov dword [ebp - 0x60], 0xfffffffe
mov dword [ebp - 0x5c], esi
call fcn.100b29a0
push 0xfff0b9d8
push esi
call fcn.100b4830
push 0xfffffffffffffffe
push dword [edi + 0x14]
mov dword [ebp - 0x60], eax
call fcn.100b2fe0
mov ecx, dword [ebp - 0x5c]
add esp, 0x28
mov esi, dword [edi + 0x14]
test ecx, ecx
jne 0x10020829
push esi
call fcn.100b28d0
add esp, 4
jmp 0x10020850
mov eax, dword [ebp - 0x60]
cdq
push edx
push eax
push 0xfff0b9d8
push ecx
call fcn.100b2aa0
mov eax, dword [ebp - 0x5c]
add esp, 0x10
cmp esi, eax
je 0x10020850
push 1
push esi
push eax
call fcn.100b3520
add esp, 0xc
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push esi
call fcn.100b2db0
push 0xffffffffffffffff
push esi
call fcn.100b2fe0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe 0x100208a5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002089b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020fba
push ecx
push edx
call fcn.100d37c5
add esp, 8
push dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0xac], fcn.10010fe0
mov dword [ebp - 0x48], str.GetInstance
call fcn.10016ae0
mov ecx, dword [ebp - 0x6c]
add esp, 8
test ecx, ecx
je 0x100208fc
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x5c]
call fcn.1001a130
jmp 0x10020984
mov esi, dword [ebp - 0x5c]
test esi, esi
jne 0x1002090e
push esi
call fcn.100b28d0
add esp, 4
jmp 0x10020935
mov eax, dword [ebp - 0x60]
cdq
push edx
push eax
push 0xfff0b9d8
push esi
call fcn.100b2aa0
mov eax, dword [ebp - 0x5c]
add esp, 0x10
cmp esi, eax
je 0x10020938
push 1
push esi
push eax
call fcn.100b3520
add esp, 0xc
mov eax, dword [ebp - 0x5c]
push 0xffffffffffffffff
push eax
call fcn.100b1d10
mov edi, dword [ebp - 0x5c]
mov esi, eax
push edi
call fcn.100b28d0
push fcn.10010fe0
push edi
call fcn.100b2850
push 2
push 0x10021b30
push edi
call fcn.100b2760
push str.GetInstance
push esi
push edi
call fcn.100b2d80
push 0xffffffffffffffff
push edi
call fcn.100b2fe0
push 0xfffffffffffffffe
push dword [ebp - 0x5c]
call fcn.100b2fe0
add esp, 0x3c
push dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov dword [ebp - 0xb0], 0x10010ff0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x48], str.GetStoreByIndex
call fcn.10016ae0
mov ecx, dword [ebp - 0x6c]
add esp, 8
test ecx, ecx
je 0x100209d3
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x5c]
call fcn.1001aa90
jmp 0x10020a78
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], eax
test esi, esi
jne 0x100209eb
push esi
call fcn.100b28d0
add esp, 4
jmp 0x10020a12
mov eax, dword [ebp - 0x60]
cdq
push edx
push eax
push 0xfff0b9d8
push esi
call fcn.100b2aa0
mov eax, dword [ebp - 0x5c]
add esp, 0x10
cmp esi, eax
je 0x10020a15
push 1
push esi
push eax
call fcn.100b3520
add esp, 0xc
mov eax, dword [ebp - 0x5c]
push 0xffffffffffffffff
push eax
call fcn.100b1d10
mov esi, eax
mov dword [ebp - 0x48], esi
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], 0
push edi
mov byte [ebp - 4], 4
call fcn.100b28d0
lea eax, [ebp - 0xb0]
push eax
push edi
call fcn.100178c0
inc eax
push eax
push 0x10021b70
push edi
call fcn.100b2760
push str.GetStoreByIndex
push esi
push edi
call fcn.100b2d80
push 0xffffffffffffffff
push edi
call fcn.100b2fe0
push 0xfffffffffffffffe
push dword [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.100b2fe0
add esp, 0x3c
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], 0x10020440
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
mov dword [ebp - 0x6c], str.GetNumActiveBuildings
call fcn.100132c0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], 0x10020450
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
mov dword [ebp - 0x6c], str.GetNumStoredBuildings
call fcn.100132c0
mov edx, dword [str.buildingstore]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020ae6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10003780
mov edi, dword [ebp - 0x64]
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x4c], 0x1010101
mov dword [ebp - 0x48], 0x1010101
mov cl, 1
movq xmm0, qword [ebp - 0x4c]
push dword [edi + 0x14]
movq qword [eax], xmm0
mov byte [ebp - 4], 5
mov byte [eax + 8], cl
call fcn.10019530
mov esi, dword [edi + 0x14]
neg eax
push eax
push esi
mov dword [ebp - 0x54], 0xfffffffe
mov dword [ebp - 0x50], esi
call fcn.100b29a0
push 0xfff0b9d8
push esi
call fcn.100b4830
push 0xfffffffffffffffe
push dword [edi + 0x14]
mov dword [ebp - 0x54], eax
call fcn.100b2fe0
mov ecx, dword [ebp - 0x50]
add esp, 0x28
mov esi, dword [edi + 0x14]
test ecx, ecx
jne 0x10020b6f
push esi
call fcn.100b28d0
add esp, 4
jmp 0x10020b96
mov eax, dword [ebp - 0x54]
cdq
push edx
push eax
push 0xfff0b9d8
push ecx
call fcn.100b2aa0
mov eax, dword [ebp - 0x50]
add esp, 0x10
cmp esi, eax
je 0x10020b96
push 1
push esi
push eax
call fcn.100b3520
add esp, 0xc
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
push esi
call fcn.100b2db0
push 0xffffffffffffffff
push esi
call fcn.100b2fe0
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
cmp ecx, 0xf
jbe 0x10020beb
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10020be1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020fbf
push ecx
push edx
call fcn.100d37c5
add esp, 8
push dword [ebp - 0x50]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x58], 0x10011090
mov dword [ebp - 0x48], str.ForceTakeover
call fcn.10016b50
mov ecx, dword [ebp - 0x64]
add esp, 8
test ecx, ecx
je 0x10020c3c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call fcn.1001b8a0
jmp 0x10020cde
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], eax
test esi, esi
jne 0x10020c54
push esi
call fcn.100b28d0
add esp, 4
jmp 0x10020c7b
mov eax, dword [ebp - 0x54]
cdq
push edx
push eax
push 0xfff0b9d8
push esi
call fcn.100b2aa0
mov eax, dword [ebp - 0x50]
add esp, 0x10
cmp esi, eax
je 0x10020c7e
push 1
push esi
push eax
call fcn.100b3520
add esp, 0xc
mov eax, dword [ebp - 0x50]
push 0xffffffffffffffff
push eax
call fcn.100b1d10
mov esi, eax
mov dword [ebp - 0x48], esi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], 0
push edi
mov byte [ebp - 4], 9
call fcn.100b28d0
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.10017e50
inc eax
push eax
push 0x10021bb0
push edi
call fcn.100b2760
push str.ForceTakeover
push esi
push edi
call fcn.100b2d80
push 0xffffffffffffffff
push edi
call fcn.100b2fe0
push 0xfffffffffffffffe
push dword [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.100b2fe0
add esp, 0x3c
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], 0x10020420
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], str.GetControllingFamily
push eax
call fcn.100133f0
push dword [ebp - 0x50]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0x10020430
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x48], str.GetNeighborhood
call fcn.10016b50
mov ecx, dword [ebp - 0x64]
add esp, 8
test ecx, ecx
je 0x10020d3a
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call fcn.1001bd50
jmp 0x10020d9f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10018f70
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], 0
push esi
mov byte [ebp - 4], 0xb
call fcn.100b28d0
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.10018110
inc eax
push eax
push 0x10021b90
push esi
call fcn.100b2760
push str.GetNeighborhood
push dword [ebp - 0x48]
push esi
call fcn.100b2d80
push 0xffffffffffffffff
push esi
call fcn.100b2fe0
mov eax, dword [ebp - 0x4c]
push 0xfffffffffffffffe
mov byte [ebp - 4], 7
push dword [eax + 4]
call fcn.100b2fe0
add esp, 0x3c
push dword [ebp - 0x50]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0x10011100
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x48], str.GetLocalizedName
call fcn.10016b50
mov ecx, dword [ebp - 0x64]
add esp, 8
test ecx, ecx
je 0x10020ddb
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call fcn.1001b3f0
jmp 0x10020e40
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10018f70
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], 0
push esi
mov byte [ebp - 4], 0xd
call fcn.100b28d0
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.10017b90
inc eax
push eax
push 0x10021b90
push esi
call fcn.100b2760
push str.GetLocalizedName
push dword [ebp - 0x48]
push esi
call fcn.100b2d80
push 0xffffffffffffffff
push esi
call fcn.100b2fe0
mov eax, dword [ebp - 0x4c]
push 0xfffffffffffffffe
mov byte [ebp - 4], 7
push dword [eax + 4]
call fcn.100b2fe0
add esp, 0x3c
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], 0x10020460
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], str.GetVenueID
push eax
call fcn.100133f0
push dword [ebp - 0x50]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0x100111d0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x48], str.HasFlag
call fcn.10016b50
mov ecx, dword [ebp - 0x64]
add esp, 8
test ecx, ecx
je 0x10020e9c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call fcn.1001c6b0
jmp 0x10020f01
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10018f70
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], 0
push esi
mov byte [ebp - 4], 0xf
call fcn.100b28d0
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.10018690
inc eax
push eax
push 0x10021bf0
push esi
call fcn.100b2760
push str.HasFlag
push dword [ebp - 0x48]
push esi
call fcn.100b2d80
push 0xffffffffffffffff
push esi
call fcn.100b2fe0
mov eax, dword [ebp - 0x4c]
push 0xfffffffffffffffe
mov byte [ebp - 4], 7
push dword [eax + 4]
call fcn.100b2fe0
add esp, 0x3c
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], 0x10011240
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], str.IsLocked
push eax
call fcn.10013520
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], 0x10011250
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], str.IsOwnedByMob
push eax
call fcn.10013520
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], 0x10011260
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], str.IsValidForTakeover
push eax
call fcn.10013520
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x10020f7f
mov eax, dword [ebp - 0x54]
cmp eax, 0xfffffffe
je 0x10020f7f
push eax
push 0xfff0b9d8
push ecx
call fcn.100b4fb0
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10020f9d
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xfffffffe
je 0x10020f9d
push ecx
push 0xfff0b9d8
push eax
call fcn.100b4fb0
add esp, 0xc
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.100d37d3
mov esp, ebp
pop ebp
ret 4
call fcn.100d9c9a
call fcn.100d9c9a
int3