Function at 0x606520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x74d815
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push ebx
mov dword [esp + 0x78], edi
call fcn.005df2b0
test eax, eax
jne 0x60700c
mov eax, dword [ebx]
push 0
push str.spawn
mov ecx, ebx
call dword [eax + 0x70]
mov dword [edi + 0x9c], eax
mov eax, dword [edi + 0x18]
mov edx, dword [ebx]
push eax
push str.selradius
mov ecx, ebx
call dword [edx + 0x5c]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov edx, dword [ebx]
push eax
push str.menuradius
mov ecx, ebx
call dword [edx + 0x5c]
push 0
mov dword [edi + 0x1c], eax
mov edx, dword [ebx]
push str.kill_with_map
mov ecx, ebx
call dword [edx + 0x5c]
neg eax
sbb eax, eax
neg eax
push 0
mov dword [edi + 0x20], eax
mov eax, dword [ebx]
push str.composite_part
mov ecx, ebx
call dword [eax + 0x98]
push 0
mov byte [edi + 0x24], al
mov edx, dword [ebx]
push str.hidden
mov ecx, ebx
call dword [edx + 0x98]
lea ecx, [esp + 0x44]
mov byte [edi + 0x25], al
call fcn.00412d40
mov eax, dword [ebx]
lea ecx, [esp + 0x44]
push ecx
push str.maps
mov ecx, ebx
mov dword [esp + 0x244], 0
call dword [eax + 0x6c]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x60668a
cmp word [eax], 0
je 0x60668a
lea ecx, [esp + 0x44]
call fcn.00413540
mov eax, dword [esp + 0x44]
test eax, eax
je 0x606656
push 0x7e1828
push eax
call fcn.0071f59b
add esp, 8
neg eax
sbb eax, eax
add eax, 1
test al, al
jne 0x606686
mov eax, dword [esp + 0x44]
test eax, eax
je 0x606656
push 0x7e1820
push eax
call fcn.0071f59b
add esp, 8
neg eax
sbb eax, eax
add eax, 1
test al, al
jne 0x606686
push 0x7d9300
lea ecx, [esp + 0x48]
call fcn.00412db0
test al, al
je 0x60666e
mov byte [edi + 0x26], 2
jmp 0x60668a
push 0x7c7b94
lea ecx, [esp + 0x48]
call fcn.00412db0
test al, al
je 0x60668a
mov byte [edi + 0x26], 1
jmp 0x60668a
mov byte [edi + 0x26], 3
mov edx, dword [ebx]
lea eax, [edi + 0x94]
push eax
push str.menu
mov ecx, ebx
call dword [edx + 0x6c]
lea ecx, [esp + 0x5c]
call fcn.00412d40
mov edx, dword [ebx]
lea eax, [esp + 0x5c]
push eax
push str.template
mov ecx, ebx
mov byte [esp + 0x244], 1
call dword [edx + 0x6c]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x606769
cmp word [eax], 0
je 0x606769
xor eax, eax
mov esi, vtable.CBArray_class_CBStr_.0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x20]
push ecx
push 0x3b
lea ecx, [esp + 0x64]
mov byte [esp + 0x244], 2
call fcn.00413d40
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x24]
call dword [edx + 0x14]
push eax
lea ecx, [edi + 0x28]
call fcn.004133c0
mov eax, dword [esp + 0x20]
push 1
lea ecx, [esp + 0x24]
call dword [eax + 0x14]
push eax
lea ecx, [edi + 0x30]
call fcn.004133c0
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x23c], 1
mov dword [esp + 0x20], esi
je 0x606769
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00412de0
push ecx
push 8
push eax
call fcn.0071f0d2
push esi
call fcn.0040fa80
add esp, 4
mov edx, dword [ebx]
lea eax, [edi + 0x38]
push eax
push str.costid
mov ecx, ebx
call dword [edx + 0x6c]
mov edx, dword [ebx]
push str.edit_arrow_offsets
mov ecx, ebx
call dword [edx + 0x24]
test eax, eax
je 0x606812
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.00413ef0
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
mov byte [esp + 0x248], 3
call dword [edx + 0xec]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x23c], 1
call fcn.00412de0
cmp dword [esp + 0x34], 0
jne 0x6067de
cmp dword [esp + 0x38], 0
je 0x60680b
mov eax, dword [edi + 0x40]
lea esi, [edi + 0x40]
mov ecx, esi
mov dword [esp + 0x1c], eax
call dword [eax + 0xc]
mov edx, dword [esp + 0x1c]
push eax
mov ecx, esi
call dword [edx + 0x14]
mov ecx, dword [esp + 0x34]
add dword [esp + 0x18], 1
mov dword [eax], ecx
mov edx, dword [esp + 0x38]
mov dword [eax + 4], edx
jmp 0x606795
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
lea ecx, [esp + 0x50]
call fcn.00412d40
mov edx, dword [ebx]
lea eax, [esp + 0x50]
push eax
push str.image
mov ecx, ebx
mov byte [esp + 0x244], 4
call dword [edx + 0x6c]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x60686b
cmp word [eax], 0
je 0x60686b
push 0
push 0
push str.image
push eax
call fcn.005dfd20
push 0
push 0x85d9c0
push 0x85ad44
push 0
push eax
call fcn.0071f44c
add esp, 0x24
mov dword [edi + 0x5c], eax
mov edx, dword [ebx]
lea eax, [esp + 0x50]
push eax
push str.selimage
mov ecx, ebx
call dword [edx + 0x6c]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x6068b3
cmp word [eax], 0
je 0x6068b3
push 0
push 0
push str.image
push eax
call fcn.005dfd20
push 0
push 0x85d9c0
push 0x85ad44
push 0
push eax
call fcn.0071f44c
add esp, 0x24
mov dword [edi + 0x60], eax
mov edx, dword [ebx]
push str.icons
mov ecx, ebx
call dword [edx + 0x24]
test eax, eax
je 0x6068d3
push ebx
lea ecx, [edi + 0x64]
call fcn.00601240
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov ecx, dword [edi + 0x10]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.00401b50
mov ecx, dword [edi + 0x10]
mov eax, esp
mov dword [esp + 0x60], esp
push ecx
push eax
mov byte [esp + 0x24c], 5
call fcn.00401cc0
add esp, 8
lea ecx, [esp + 0x74]
call fcn.00413460
push str..pass
lea ecx, [esp + 0x70]
call fcn.00413410
mov edx, dword [esp + 0x6c]
push edx
call fcn.00411b10
mov esi, eax
xor eax, eax
add esp, 4
test esi, esi
setne al
test esi, esi
mov dword [esp + 0x58], eax
jne 0x606933
mov esi, ebx
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00413ef0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push str.passinfo_
push edx
mov byte [esp + 0x248], 6
call fcn.00413c20
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 7
call fcn.004133c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x23c], 6
call fcn.00412de0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x606d42
lea esp, [esp]
lea ecx, [esp + 0x90]
call fcn.00604440
mov edx, dword [esi]
push 0
push 0x781fa8
mov ecx, esi
call dword [edx + 0x70]
push 0
mov dword [esp + 0x94], eax
mov eax, dword [esi]
push str.gridsize
mov ecx, esi
call dword [eax + 0x90]
mov edx, dword [esi]
push 0
push str.merge
mov ecx, esi
mov word [esp + 0x232], ax
call dword [edx + 0x98]
push 0
mov byte [esp + 0x230], al
mov eax, dword [esi]
push str.hidden
mov ecx, esi
call dword [eax + 0x98]
mov edx, dword [esi]
push 0
push str.count
mov ecx, esi
mov byte [esp + 0x235], al
call dword [edx + 0x90]
mov dword [esp + 0x18], 0
lea ebx, [esp + 0x98]
mov dword [esp + 0x4c], 5
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.00413ef0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x7c]
push str.level_
push edx
mov byte [esp + 0x248], 8
call fcn.00413c20
add esp, 0xc
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x240], 9
call fcn.004133c0
lea ecx, [esp + 0x78]
mov byte [esp + 0x23c], 8
call fcn.00412de0
mov ecx, dword [esp + 0x34]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x606ade
mov edx, dword [esi]
push 0
push 0
push str.points
mov ecx, esi
call dword [edx + 0x54]
push 0
mov dword [ebx - 4], eax
mov eax, dword [esi]
push str.count
mov ecx, esi
call dword [eax + 0x90]
mov edx, dword [esi]
push 0
push 0x7c8d04
mov ecx, esi
mov word [ebx], ax
call dword [edx + 0x90]
mov word [ebx + 2], ax
mov eax, dword [esi]
add word [esp + 0xbe], 1
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [esp + 0x34]
mov byte [esp + 0x23c], 6
call fcn.00412de0
mov eax, 1
add dword [esp + 0x18], eax
add ebx, 8
sub dword [esp + 0x4c], eax
jne 0x606a32
mov edx, dword [esi]
push 0
push str.portals
mov ecx, esi
call dword [edx + 0x90]
xor ebx, ebx
test ax, ax
mov word [esp + 0x228], ax
jbe 0x606c66
lea esp, [esp]
movzx edi, bx
push edi
lea ecx, [esp + 0x68]
call fcn.00413ef0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x84]
push str.portal_
push ecx
mov byte [esp + 0x248], 0xa
call fcn.00413c20
add esp, 0xc
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x240], 0xb
call fcn.004133c0
lea ecx, [esp + 0x80]
mov byte [esp + 0x23c], 0xa
call fcn.00412de0
mov eax, dword [esp + 0x64]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov edx, dword [esi]
push 0
push str.point1
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call dword [edx + 0xec]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi]
lea edi, [edi + edi*2]
add edi, edi
add edi, edi
add edi, edi
push 0
mov dword [esp + edi + 0xc4], ecx
push str.point2
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + edi + 0xd0], edx
call dword [eax + 0xec]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push 0
mov dword [esp + edi + 0xd0], edx
mov edx, dword [esi]
push str.level1
mov ecx, esi
mov dword [esp + edi + 0xd8], eax
call dword [edx + 0x90]
push 0
mov word [esp + edi + 0xcc], ax
mov eax, dword [esi]
push str.level2
mov ecx, esi
call dword [eax + 0x90]
mov edx, dword [esi]
push 0
push str.hidden
mov ecx, esi
mov word [esp + edi + 0xdc], ax
call dword [edx + 0x98]
mov byte [esp + edi + 0xd6], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [esp + 0x64]
mov byte [esp + 0x23c], 6
call fcn.00412de0
add ebx, 1
cmp bx, word [esp + 0x228]
jb 0x606b30
mov edi, dword [esp + 0x74]
cmp dword [edi + 0x54], 0
jne 0x606c95
push 0x14
call fcn.0040fa60
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x606c90
mov dword [eax + 4], ecx
mov dword [eax], vtable.CBSList_struct_TPassInfo_.0
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
jmp 0x606c92
xor eax, eax
mov dword [edi + 0x54], eax
mov ecx, dword [edi + 0x54]
mov ebx, dword [ecx]
sub esp, 0x1a0
lea edx, [esp + 0x230]
mov ecx, esp
mov dword [esp + 0x1ec], esp
push edx
call fcn.00536f80
mov ecx, dword [edi + 0x54]
call dword [ebx + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 5
call fcn.00412de0
mov eax, dword [esp + 0x1c]
add eax, 1
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.00413ef0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push str.passinfo_
push edx
mov byte [esp + 0x248], 6
call fcn.00413c20
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 7
call fcn.004133c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x23c], 6
call fcn.00412de0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
jne 0x6069a0
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 5
call fcn.00412de0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00413ef0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x40]
push str.refpoint_
push eax
mov byte [esp + 0x248], 0xc
call fcn.00413c20
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0xd
call fcn.004133c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x23c], 0xc
call fcn.00412de0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
test eax, eax
je 0x606eed
lea esp, [esp]
mov edx, dword [esi]
push 0
push str.count
mov ecx, esi
call dword [edx + 0x90]
push 0
push 0
mov word [esp + 0x34], ax
mov eax, dword [esi]
push str.points
mov ecx, esi
call dword [eax + 0x54]
mov edx, dword [esi]
push 0
push 0
push str.floors
mov ecx, esi
mov dword [esp + 0x30], eax
call dword [edx + 0x54]
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push 0x781fa8
mov ecx, esi
call dword [eax + 0x70]
cmp dword [edi + 0x58], 0
mov dword [esp + 0x20], eax
jne 0x606e3f
push 0x14
call fcn.0040fa60
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x606e3a
mov dword [eax + 4], ecx
mov dword [eax], vtable.CBSList_struct_CMapObjDef::TRefPoints_.0
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
jmp 0x606e3c
xor eax, eax
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x58]
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x58]
call dword [edx + 8]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 5
call fcn.00412de0
mov eax, dword [esp + 0x1c]
add eax, 1
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.00413ef0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
push str.refpoint_
push ecx
mov byte [esp + 0x248], 0xc
call fcn.00413c20
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0xd
call fcn.004133c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x23c], 0xc
call fcn.00412de0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
test eax, eax
jne 0x606dc0
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 5
call fcn.00412de0
cmp dword [esp + 0x58], 0
je 0x606f0d
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [ebx]
push str.sounds
mov ecx, ebx
call dword [eax + 0x24]
test eax, eax
je 0x606fbc
xor esi, esi
mov dword [esp + 0x20], vtable.CBArray_class_CBStr_.0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], esi
mov edx, dword [ebx]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
mov byte [esp + 0x240], 0xe
call dword [edx + 0x48]
cmp dword [esp + 0x30], esi
jbe 0x606f80
lea esp, [esp]
mov edx, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x24]
call dword [edx + 0x14]
mov eax, dword [eax]
push eax
push ebx
mov ecx, edi
call fcn.00604d20
add esi, 1
cmp esi, dword [esp + 0x30]
jb 0x606f60
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x23c], 5
mov dword [esp + 0x20], vtable.CBArray_class_CBStr_.0
je 0x606fbc
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00412de0
push ecx
push 8
push eax
call fcn.0071f0d2
push esi
call fcn.0040fa80
add esp, 4
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x50]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x23c], 4
call fcn.00412de0
lea ecx, [esp + 0x50]
mov byte [esp + 0x23c], 1
call fcn.00412de0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x23c], 0
call fcn.00412de0
lea ecx, [esp + 0x44]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00412de0
xor eax, eax
mov ecx, dword [esp + 0x234]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4