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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x298
push ebx
push ebp
push esi
push edi
push str.AAS_Reachability_Elevator_r_n
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
call fcn.004a1080
push 0
call fcn.004c25a0
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x6c], ebp
je 0x4bf255
jmp 0x4be979
mov ebp, dword [esp + 0x6c]
lea eax, [esp + 0x1a8]
push 0x80
push eax
push str.classname
push ebp
call fcn.004c25f0
add esp, 0x10
test eax, eax
je 0x4bf240
mov esi, str.func_plat
lea eax, [esp + 0x1a8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4be9d0
test cl, cl
je 0x4be9cc
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4be9d0
add eax, 2
add esi, 2
test cl, cl
jne 0x4be9a8
xor eax, eax
jmp 0x4be9d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bf240
push str.found_func_plat_r_n
call fcn.004a1080
lea eax, [esp + 0x22c]
push 0x80
push eax
push str.model
push ebp
call fcn.004c25f0
add esp, 0x14
test eax, eax
jne 0x4bea1b
push str.func_plat_without_model_n
push 3
call dword [0x122fa00]
add esp, 8
jmp 0x4bf240
lea ecx, [esp + 0x229]
push ecx
call fcn.004cb5db
add esp, 4
mov dword [esp + 0xa8], eax
test eax, eax
jg 0x4bea4b
push str.func_plat_with_invalid_model_number_n
push 3
call dword [0x122fa00]
add esp, 8
jmp 0x4bf240
lea edx, [esp + 0x70]
lea ecx, [esp + 0x10]
push edx
push ecx
lea edx, [esp + 0x24]
lea ecx, [esp + 0xb8]
push edx
push ecx
push eax
call fcn.004c2540
lea edx, [esp + 0x84]
push edx
push str.origin
push ebp
call fcn.004c2680
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
mov dword [esp + 0xb8], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x17c], eax
push ecx
push 0x500c44
push ebp
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
call fcn.004c2730
fld dword [esp + 0x90]
fcomp dword [0x4e0398]
add esp, 0x2c
fnstsw ax
test ah, 0x40
je 0x4beade
mov dword [esp + 0x64], 0x41000000
lea edx, [esp + 0x38]
push edx
push str.height
push ebp
call fcn.004c2730
fld dword [esp + 0x44]
fcomp dword [0x4e0398]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x4beb12
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
fsub dword [esp + 0x64]
fstp dword [esp + 0x38]
lea eax, [esp + 0x7c]
push eax
push str.speed
push ebp
call fcn.004c2730
fld dword [esp + 0x88]
fcomp dword [0x4e0398]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x4beb41
mov dword [esp + 0x7c], 0x43480000
fld dword [esp + 0xa0]
fsub dword [esp + 0x38]
sub esp, 8
sub esp, 8
fstp dword [esp + 0xb0]
fld dword [esp + 0x16c]
fstp qword [esp + 8]
fld dword [esp + 0xb0]
fstp qword [esp]
push str.pos2_2____1.1f_pos1_2____1.1f_n
push 1
call dword [0x122fa00]
fld dword [esp + 0x28]
fadd dword [esp + 0x34]
add esp, 0x18
xor eax, eax
fld st(0)
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
fst dword [esp + 0x3c]
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
fmul qword [0x4e03e8]
fadd dword [esp + 0x98]
fstp dword [esp + 0x80]
fld dword [esp + 0x44]
fmul qword [0x4e03e8]
mov dword [esp + 0x44], ecx
fadd dword [esp + 0x9c]
fstp dword [esp + 0x84]
fld dword [esp + 0x15c]
fsub dword [esp + 0xa0]
fsubr dword [esp + 0x18]
fadd dword [0x4e03c8]
fstp dword [esp + 0x88]
fmul qword [0x4e03e8]
fadd dword [esp + 0x98]
fstp dword [esp + 0x8c]
fld dword [esp + 0x44]
fmul qword [0x4e03e8]
fadd dword [esp + 0x9c]
fstp dword [esp + 0x90]
fld dword [esp + 0x18]
fadd dword [0x4e03c8]
fstp dword [esp + 0x94]
fld dword [esp + eax + 0x1c]
fsub dword [0x4e03d0]
add eax, 4
cmp eax, 0xc
fstp dword [esp + eax + 0x18]
fld dword [esp + eax + 0xc]
fadd dword [0x4e03d0]
fstp dword [esp + eax + 0xc]
jl 0x4bec2a
fld dword [esp + 0x94]
sub esp, 8
fstp qword [esp]
fld dword [esp + 0x90]
sub esp, 8
fstp qword [esp]
push str.platbottom_2____1.1f_plattop_2____1.1f_n
push 1
call dword [0x122fa00]
fld dword [esp + 0x28]
fadd dword [esp + 0x34]
fld dword [esp + 0x2c]
fadd dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x134], eax
mov dword [esp + 0x12c], edx
mov edx, dword [esp + 0x2c]
add esp, 0x18
fstp dword [esp + 0x44]
mov dword [esp + 0x138], edx
mov edx, dword [esp + 0x1c]
fmul qword [0x4e03e8]
mov dword [esp + 0x124], edx
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x14c], edx
mov dword [esp + 0x3c], ebx
fst dword [esp + 0x40]
fld dword [esp + 0x44]
fmul qword [0x4e03e8]
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov eax, ecx
mov dword [esp + 0x134], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x140], ecx
fst dword [esp + 0x118]
fstp dword [esp + 0x120]
mov dword [esp + 0x128], eax
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x144], eax
mov ecx, eax
mov eax, edx
mov dword [esp + 0x148], ecx
mov dword [esp + 0x150], eax
cmp ebx, 0x20
jge 0x4bedec
fld dword [esp + 0x70]
fadd dword [esp + ebx + 0x114]
lea ecx, [esp + 0x28]
push ecx
fstp dword [esp + 0x2c]
fld dword [esp + 0x78]
fadd dword [esp + ebx + 0x138]
fstp dword [esp + 0x30]
fld dword [esp + 0x8c]
fadd dword [0x4e03b8]
fstp dword [esp + 0x34]
call fcn.004c3040
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
xor esi, esi
jmp 0x4bed99
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4bedb7
push edi
call fcn.004ba230
add esp, 4
test eax, eax
jne 0x4bede1
push edi
call fcn.004ba1b0
add esp, 4
test eax, eax
jne 0x4bede1
fld dword [esp + 0x30]
fadd dword [0x4e0488]
lea edx, [esp + 0x28]
push edx
fstp dword [esp + 0x34]
call fcn.004c3040
add esp, 4
inc esi
cmp esi, 0x10
mov dword [esp + 0x34], eax
jl 0x4bed95
jmp 0x4bf230
cmp esi, 0x10
jge 0x4bf230
jmp 0x4bee53
fld dword [esp + 0x94]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
fadd dword [0x4e084c]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x30], ecx
fstp dword [esp + 0x34]
call fcn.004c3040
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x4bf230
fld dword [esp + 0x88]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
fadd dword [0x4e084c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x30]
mov dword [esp + 0x68], 0
xor eax, eax
fld dword [esp + eax + 0x1c]
fsub dword [0x4e0488]
add eax, 4
cmp eax, 0xc
fstp dword [esp + eax + 0x18]
fld dword [esp + eax + 0xc]
fadd dword [0x4e0488]
fstp dword [esp + eax + 0xc]
jl 0x4bee5d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd8], eax
mov edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xe0], edx
fld dword [esp + 0x94]
mov edx, eax
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xfc], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x100], eax
fadd dword [0x4e03b8]
mov dword [esp + 0xf8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xe8], edx
mov eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0xec], eax
fstp dword [esp + 0xac]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xf0], ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], eax
mov edx, ecx
xor eax, eax
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], edx
mov dword [esp + 0xa4], eax
fld dword [esp + 0x70]
fadd dword [esp + eax + 0xd4]
lea ecx, [esp + 0x58]
push ecx
fstp dword [esp + 0x5c]
fld dword [esp + 0x78]
fadd dword [esp + eax + 0xf8]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x64], eax
fstp dword [esp + 0x60]
call fcn.004c3040
add esp, 4
mov ebx, eax
xor ebp, ebp
test ebx, ebx
je 0x4bf03f
push ebx
call fcn.004ba230
add esp, 4
test eax, eax
jne 0x4befa0
push ebx
call fcn.004ba1b0
add esp, 4
test eax, eax
je 0x4bf03f
fld dword [esp + 0x94]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
fadd dword [0x4e03b0]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xbc], ecx
push 0xffffffffffffffff
fstp dword [esp + 0xd4]
fld dword [esp + 0x64]
fadd dword [0x4e03d0]
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], edx
push 4
lea ecx, [esp + 0xd0]
push eax
lea edx, [esp + 0x190]
fstp dword [esp + 0xd0]
push ecx
push edx
call fcn.004c3280
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x174]
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x164]
fcomp dword [0x4e03d0]
fnstsw ax
test ah, 1
je 0x4bf06b
fld dword [esp + 0x60]
fadd dword [0x4e0488]
lea eax, [esp + 0x58]
push eax
fstp dword [esp + 0x64]
call fcn.004c3040
add esp, 4
inc ebp
cmp ebp, 0x10
mov ebx, eax
jl 0x4bef7a
jmp 0x4bf1fc
cmp ebp, 0x10
jge 0x4bf1fc
mov esi, dword [esp + 0x34]
cmp ebx, esi
je 0x4bf1fc
push ebx
call fcn.004ba230
add esp, 4
test eax, eax
je 0x4bf1fc
push ebx
push esi
call fcn.004ba310
add esp, 8
test eax, eax
jne 0x4bf1fc
fld dword [esp + 0x28]
fsub dword [esp + 0x80]
lea ecx, [esp + 0x4c]
push ecx
fstp dword [esp + 0x50]
fld dword [esp + 0x30]
fsub dword [esp + 0x88]
fstp dword [esp + 0x54]
fld dword [esp + 0x34]
fsub dword [esp + 0x8c]
fstp dword [esp + 0x58]
call fcn.0042bd60
fstp st(0)
fld dword [esp + 0x50]
fmul dword [0x4e084c]
mov edx, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x54], edx
xor ecx, ecx
fadd dword [esp + 0x28]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fmul dword [0x4e084c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x50]
fld dword [esp + ecx*4 + 0x1c]
fadd dword [esp + ecx*4 + 0x70]
fcomp dword [esp + ecx*4 + 0x4c]
fnstsw ax
test ah, 0x41
je 0x4bf13e
fld dword [esp + ecx*4 + 0x10]
fadd dword [esp + ecx*4 + 0x70]
fcomp dword [esp + ecx*4 + 0x4c]
fnstsw ax
test ah, 1
jne 0x4bf13e
inc ecx
cmp ecx, 3
jl 0x4bf10d
jmp 0x4bf1fc
cmp ecx, 3
jge 0x4bf1fc
call fcn.004b9c00
mov esi, eax
test esi, esi
je 0x4bf1fc
mov eax, dword [esp + 0xa8]
mov dword [esi], ebx
mov dword [esi + 4], eax
fld dword [esp + 0x38]
call fcn.004cb970
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x50]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x54]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x60]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0xb
fld dword [esp + 0x38]
fmul dword [0x4e0588]
fdiv dword [esp + 0x7c]
call fcn.004cb970
test ax, ax
mov word [esi + 0x28], ax
jne 0x4bf1c1
mov word [esi + 0x28], 0x32
mov ecx, dword [0x1228434]
mov eax, dword [esp + 0x34]
push ebx
push eax
mov edx, dword [ecx + eax*4]
push str.elevator_reach_from__d_to__d_r_n
mov dword [esi + 0x2c], edx
mov ecx, dword [0x1228434]
mov dword [esp + 0x74], 0x270f
mov dword [ecx + eax*4], esi
call fcn.004a1080
mov eax, dword [0x1228448]
add esp, 0xc
inc eax
mov dword [0x1228448], eax
mov eax, dword [esp + 0xa4]
add eax, 4
cmp eax, 0x20
mov dword [esp + 0xa4], eax
jl 0x4bef40
mov eax, dword [esp + 0x68]
inc eax
cmp eax, 3
mov dword [esp + 0x68], eax
jl 0x4bee5b
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x6c]
add ebx, 4
cmp ebx, 0x24
mov dword [esp + 0x3c], ebx
jl 0x4bed46
push ebp
call fcn.004c25a0
add esp, 4
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x4be975
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret