Function at 0x4be050
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x585afb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
mov ebp, dword [esp + 0x154]
push esi
mov esi, ecx
push edi
sub esp, 0x10
lea ecx, [esp + 0x58]
mov edi, dword [esi + 0x634]
fld dword [edi + 0xc]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xc]
fld dword [edi + 8]
fsub dword [ebp + 8]
fstp dword [esp + 8]
fld dword [edi + 4]
fsub dword [ebp + 4]
fstp dword [esp + 4]
fld dword [edi]
fsub dword [ebp]
fstp dword [esp]
call fcn.0045dab0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.00403940
fsqrt
fcom dword [0x589284]
fnstsw ax
and eax, 0x4100
jne 0x4be10e
fdivr dword [0x589288]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x30]
push 0
push str.Skater_First_Forward_Collision_Height
fstp st(0)
call fcn.004196d0
fld st(0)
fmul dword [edi + 0x5c]
sub esp, 8
lea ecx, [esp + 0x48]
fstp dword [esp + 0xc]
fld st(0)
fmul dword [edi + 0x58]
fstp dword [esp + 8]
fld st(0)
fmul dword [edi + 0x54]
fstp dword [esp + 4]
fmul dword [edi + 0x50]
fstp dword [esp]
call fcn.0045dab0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], edx
mov edx, dword [ebp]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x60], eax
mov dword [esi + 0x3540], edx
mov eax, dword [ebp + 4]
fld dword [esp + 0x38]
mov dword [esp + 0x64], ecx
mov dword [esi + 0x3544], eax
mov ecx, dword [ebp + 8]
push 0
mov dword [esi + 0x3548], ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x354c], edx
push str.Skater_First_Forward_Collision_Length
fadd dword [esi + 0x3540]
fstp dword [esi + 0x3540]
fld dword [esp + 0x44]
fadd dword [esi + 0x3544]
fstp dword [esi + 0x3544]
fld dword [esp + 0x48]
fadd dword [esi + 0x3548]
fstp dword [esi + 0x3548]
fld dword [esp + 0x4c]
fadd dword [esi + 0x354c]
fstp dword [esi + 0x354c]
mov eax, dword [esi + 0x634]
fld dword [esp + 0x40]
mov ecx, dword [eax]
mov dword [esi + 0x3550], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x3554], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x3558], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x355c], edx
fadd dword [esi + 0x3550]
fstp dword [esi + 0x3550]
fld dword [esp + 0x44]
fadd dword [esi + 0x3554]
fstp dword [esi + 0x3554]
fld dword [esp + 0x48]
fadd dword [esi + 0x3558]
fstp dword [esi + 0x3558]
fld dword [esp + 0x4c]
fadd dword [esi + 0x355c]
fstp dword [esi + 0x355c]
call fcn.004196d0
fld dword [esp + 0x5c]
fmul st(1)
sub esp, 8
fstp dword [esp + 0xc]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 8]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 4]
fmul dword [esp + 0x38]
fstp dword [esp]
lea ecx, [esp + 0x28]
call fcn.0045dab0
fld dword [esp + 0x18]
fadd dword [esi + 0x3550]
push 0
push 0x10
mov ecx, esi
fstp dword [esi + 0x3550]
fld dword [esp + 0x24]
fadd dword [esi + 0x3554]
fstp dword [esi + 0x3554]
fld dword [esp + 0x28]
fadd dword [esi + 0x3558]
fstp dword [esi + 0x3558]
fld dword [esp + 0x2c]
fadd dword [esi + 0x355c]
fstp dword [esi + 0x355c]
call fcn.004bcfd0
test al, al
je 0x4beb63
lea edi, [esi + 0x3560]
mov ecx, edi
call fcn.00506220
push eax
lea ecx, [esp + 0x2c]
call fcn.00499d60
fld dword [esp + 0x30]
fmul dword [esi + 0x3788]
fld dword [esp + 0x2c]
fmul dword [esi + 0x3784]
mov al, byte [esi + 0x36d4]
faddp st(1)
fld dword [esp + 0x28]
fmul dword [esi + 0x3780]
test al, al
faddp st(1)
je 0x4be331
fcomp dword [0x58afb8]
fnstsw ax
test ah, 5
jp 0x4beb63
fld dword [esp + 0x2c]
fcomp dword [0x58930c]
fnstsw ax
test ah, 5
jp 0x4beb63
jmp 0x4be333
fstp st(0)
push edi
lea ecx, [esp + 0x7c]
call fcn.0041edc0
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x24]
push ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x9c], eax
call fcn.0041cec0
mov edx, dword [edi + 0x78]
lea eax, [edi + 0x7c]
push eax
lea ecx, [esp + 0xf8]
mov dword [esp + 0xf4], edx
call fcn.00499d60
lea ecx, [edi + 0x8c]
push ecx
lea ecx, [esp + 0x108]
call fcn.00499d60
lea edx, [edi + 0x9c]
lea ecx, [esp + 0x114]
push edx
call fcn.00473c30
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0xac]
mov edx, dword [edi + 0xb0]
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], edx
mov ecx, edi
mov dword [esp + 0x154], 0
call fcn.00506220
fld dword [eax + 4]
fcomp dword [0x589600]
mov byte [esp + 0x13], 1
fnstsw ax
test ah, 5
jnp 0x4be3ea
mov byte [esp + 0x13], 0
mov ebx, dword [esi + 0x634]
lea ecx, [esp + 0x68]
push ebx
call fcn.00499d60
fld dword [esi + 0x355c]
fsub dword [esp + 0x44]
sub esp, 0x10
lea ecx, [esp + 0x28]
fstp dword [esp + 0xc]
fld dword [esi + 0x3558]
fsub dword [esp + 0x50]
fstp dword [esp + 8]
fld dword [esi + 0x3554]
fsub dword [esp + 0x4c]
fstp dword [esp + 4]
fld dword [esi + 0x3550]
fsub dword [esp + 0x48]
fstp dword [esp]
call fcn.0045dab0
mov eax, dword [esp + 0x18]
push ebp
mov dword [ebx], eax
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], ecx
mov edx, dword [esp + 0x24]
mov dword [ebx + 8], edx
mov eax, dword [esp + 0x28]
mov ecx, esi
mov dword [ebx + 0xc], eax
call fcn.004bddf0
test al, al
je 0x4be4af
mov ecx, dword [esi + 0x634]
fld dword [ecx + 0x34]
fcomp dword [0x5895f4]
fnstsw ax
and eax, 0x4100
je 0x4be484
mov al, byte [esp + 0x13]
test al, al
je 0x4be4af
push str._snap_up_check_in_HandleForwardCollisionInAir_returned_true__so_returning_n
call fcn.00535ef0
add esp, 4
lea ecx, [esp + 0x114]
mov dword [esp + 0x154], 0xffffffff
call fcn.00422020
mov al, 1
jmp 0x4beb65
mov eax, dword [esi + 0x634]
mov edx, dword [esp + 0x68]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x78]
mov dword [eax + 0xc], ecx
push edx
mov ecx, edi
call fcn.0041edc0
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [edi + 0x24]
mov dword [edi + 0x20], eax
call fcn.0041cec0
mov edx, dword [esp + 0xf0]
lea eax, [esp + 0xf4]
push eax
lea ecx, [edi + 0x7c]
mov dword [edi + 0x78], edx
call fcn.00499d60
lea ecx, [esp + 0x104]
push ecx
lea ecx, [edi + 0x8c]
call fcn.00499d60
lea edx, [esp + 0x114]
lea ecx, [edi + 0x9c]
push edx
call fcn.00473b50
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x128]
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], ecx
mov dword [edi + 0xb0], edx
mov ecx, dword [esi + 0x634]
fld dword [ecx + 0x54]
fcomp dword [0x58930c]
fnstsw ax
and eax, 0x4100
jne 0x4be6cb
fld dword [ecx + 0x34]
fcomp dword [0x589284]
fnstsw ax
and eax, 0x4100
jne 0x4be6cb
fld dword [esp + 0x2c]
fcomp qword [0x58afb0]
fnstsw ax
test ah, 5
jp 0x4be6cb
push 0
push str.Physics_Air_Snap_Up
call fcn.004196d0
fst dword [esp + 0x1c]
fstp dword [esp + 0x54]
add esp, 8
lea eax, [esp + 0x48]
lea ecx, [esp + 0x78]
mov dword [esp + 0x48], 0
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.0041fc50
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x8c]
call fcn.0041fc50
push 0
push 1
lea ecx, [esp + 0x80]
call fcn.00505c40
test al, al
jne 0x4be6cb
fld dword [esp + 0x14]
fcomp dword [0x589878]
fnstsw ax
and eax, 0x4100
jne 0x4be68d
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x40000000
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea edx, [esp + 0x38]
lea ecx, [esp + 0x78]
push edx
call fcn.00405910
lea eax, [esp + 0x38]
lea ecx, [esp + 0x88]
push eax
call fcn.00405910
push 0
push 1
lea ecx, [esp + 0x80]
call fcn.00505c40
test al, al
jne 0x4be68d
fld dword [esp + 0x4c]
fsub dword [0x5892e8]
fst dword [esp + 0x4c]
fcomp dword [0x589878]
fnstsw ax
and eax, 0x4100
je 0x4be63d
mov esi, dword [esi + 0x634]
mov dword [esp + 0x154], 0xffffffff
fld dword [esp + 0x4c]
fadd dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esi], ecx
lea ecx, [esp + 0x114]
mov dword [esi + 8], edx
fstp dword [esi + 4]
mov dword [esi + 0xc], eax
call fcn.00422020
mov al, 1
jmp 0x4beb65
mov al, byte [esi + 0x3404]
test al, al
je 0x4be7bc
mov ecx, edi
call fcn.00506210
fld dword [eax + 0xc]
fsub dword [esp + 0x44]
sub esp, 0x10
lea ecx, [esp + 0x28]
fstp dword [esp + 0xc]
fld dword [eax + 8]
fsub dword [esp + 0x50]
fstp dword [esp + 8]
fld dword [eax + 4]
fsub dword [esp + 0x4c]
fstp dword [esp + 4]
fld dword [eax]
fsub dword [esp + 0x48]
fstp dword [esp]
call fcn.0045dab0
mov eax, dword [esi + 0x634]
mov ecx, dword [esp + 0x18]
push 0
push str.Skater_Min_Distance_To_Wall
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc], edx
call fcn.004196d0
fld dword [esp + 0x3c]
fmul st(1)
sub esp, 8
lea ecx, [esp + 0x28]
fstp dword [esp + 0xc]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 8]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 4]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp]
fstp st(0)
call fcn.0045dab0
mov eax, dword [esi + 0x634]
fld dword [esp + 0x18]
fadd dword [eax]
fstp dword [eax]
fld dword [esp + 0x1c]
fadd dword [eax + 4]
fstp dword [eax + 4]
fld dword [esp + 0x20]
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x24]
fadd dword [eax + 0xc]
fstp dword [eax + 0xc]
mov ecx, dword [esi + 0x634]
lea eax, [esp + 0x28]
push eax
add ecx, 0x30
call fcn.00405060
jmp 0x4beb4c
mov ecx, esi
call fcn.004c1d50
test al, al
jne 0x4beb4c
push edi
push 6
mov ecx, esi
call fcn.004b90b0
mov al, byte [esi + 0x3530]
test al, al
jne 0x4beb4c
mov ecx, edi
call fcn.00506220
fld dword [eax + 4]
fcomp dword [0x58ab58]
fnstsw ax
test ah, 5
jp 0x4be845
mov ecx, dword [esi + 0x634]
add ecx, 0x30
call fcn.00403940
fsqrt
mov ecx, edi
fstp dword [esp + 0x14]
call fcn.00506250
mov ecx, dword [esp + 0x14]
mov ebp, dword [0xab5be0]
push ecx
mov ecx, esi
mov ebx, eax
call fcn.004cbc30
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x634]
push 1
push edx
push eax
push ebx
push 4
mov ecx, ebp
call fcn.00506550
fld dword [esp + 0x2c]
fcomp dword [0x58af9c]
mov dword [esp + 0x14], 0
fnstsw ax
and eax, 0x4100
jne 0x4be874
mov eax, dword [esi + 0x634]
mov ecx, dword [eax + 0x34]
mov dword [eax + 0x34], 0
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x634]
lea edx, [esp + 0x28]
push edx
add ecx, 0x30
call fcn.00405060
mov ebp, dword [esi + 0x634]
add ebp, 0x30
mov ecx, ebp
call fcn.00403940
fsqrt
sub esp, 0x10
lea ecx, [esp + 0x28]
fmul dword [0x589600]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 8]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 4]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp]
fstp st(0)
call fcn.0045dab0
fld dword [esp + 0x18]
fadd dword [ebp]
fstp dword [ebp]
fld dword [esp + 0x1c]
fadd dword [ebp + 4]
fstp dword [ebp + 4]
fld dword [esp + 0x20]
fadd dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [esp + 0x24]
fadd dword [ebp + 0xc]
fstp dword [ebp + 0xc]
fld dword [esp + 0x2c]
fcomp dword [0x58af9c]
fnstsw ax
and eax, 0x4100
jne 0x4be91c
mov eax, dword [esi + 0x634]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x34], ecx
mov eax, dword [esi + 0x634]
mov edx, dword [eax + 0x64]
mov dword [eax + 0x64], 0
mov ecx, dword [esi + 0x634]
lea eax, [esp + 0x28]
push eax
add ecx, 0x60
mov dword [esp + 0x18], edx
call fcn.004050d0
mov ecx, dword [esi + 0x634]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push 0x3d4ccccd
mov dword [ecx + 0x64], edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00402ac0
mov eax, dword [esi + 0x634]
add esp, 0xc
fld dword [esp + 0x18]
fadd dword [eax + 0x60]
add eax, 0x60
fstp dword [eax]
fld dword [esp + 0x1c]
fadd dword [eax + 4]
fstp dword [eax + 4]
fld dword [esp + 0x20]
fadd dword [eax + 8]
fstp dword [eax + 8]
fld dword [esp + 0x24]
fadd dword [eax + 0xc]
fstp dword [eax + 0xc]
mov ebp, dword [esi + 0x634]
add ebp, 0x60
mov ecx, ebp
call fcn.00403940
fsqrt
fcom dword [0x589284]
fnstsw ax
and eax, 0x4100
jne 0x4be9d6
fdivr dword [0x589288]
fld st(0)
fmul dword [ebp]
fstp dword [ebp]
fld st(0)
fmul dword [ebp + 4]
fstp dword [ebp + 4]
fmul dword [ebp + 8]
fstp dword [ebp + 8]
jmp 0x4be9d8
fstp st(0)
mov ebp, dword [esi + 0x634]
lea ecx, [esp + 0x18]
lea edx, [ebp + 0x60]
lea eax, [ebp + 0x50]
push edx
push eax
push ecx
call fcn.004039b0
mov edx, dword [eax]
add esp, 0xc
mov dword [ebp + 0x40], edx
mov ecx, dword [eax + 4]
mov dword [ebp + 0x44], ecx
mov edx, dword [eax + 8]
mov dword [ebp + 0x48], edx
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x4c], eax
mov ecx, dword [esi + 0x634]
add ecx, 0x40
call fcn.00403960
mov eax, dword [esi + 0x634]
lea edx, [esp + 0x18]
lea ebx, [eax + 0x50]
lea ecx, [eax + 0x40]
add eax, 0x60
push ecx
push eax
push edx
call fcn.004039b0
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00499d60
mov ecx, dword [esi + 0x634]
add ecx, 0x50
call fcn.00403960
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.00506210
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00404c70
mov ecx, dword [esi + 0x634]
add esp, 0xc
push eax
call fcn.00499d60
push 0
push str.Skater_Min_Distance_To_Wall
call fcn.004196d0
fstp dword [esp + 4]
add esp, 4
lea edx, [esp + 0x2c]
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.00402ac0
mov ecx, dword [esi + 0x634]
add esp, 0xc
push eax
call fcn.0041fc50
mov ecx, edi
call fcn.005062b0
test al, al
je 0x4beb4c
push str.foward_bonk_into_something_movable_n
call fcn.00535ef0
add esp, 4
mov ecx, edi
call fcn.005062e0
add eax, 0x534
lea ecx, [esp + 0x48]
push eax
call fcn.00499d60
mov ecx, edi
call fcn.00506220
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00402af0
fcomp dword [0x589284]
add esp, 8
fnstsw ax
and eax, 0x4100
jne 0x4beb4c
mov edi, dword [esi + 0x634]
push 0x40000000
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x140]
mov edx, dword [edi + 0xe0]
push edx
push eax
push ecx
call fcn.00402ac0
add esp, 0xc
lea edx, [esp + 0x130]
push eax
push edx
call fcn.00402ac0
add esp, 0xc
mov ecx, edi
push eax
call fcn.0041fc50
mov ecx, dword [esi + 0x634]
lea eax, [esp + 0x48]
push eax
add ecx, 0x30
call fcn.0041fc50
lea ecx, [esp + 0x114]
mov dword [esp + 0x154], 0xffffffff
call fcn.00422020
xor al, al
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret 4