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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x794
fld qword [0x5c62b8]
push ebx
push esi
fstp qword [esp + 0x34]
fld1
xor ebx, ebx
push edi
fstp qword [esp + 0x40]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
mov esi, ecx
push 0x300
lea ecx, [esp + 0x4a4]
push ecx
mov ecx, edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x1b], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x190], bl
mov byte [esp + 0x4a8], bl
mov dword [esp + 0x490], ebx
mov dword [esp + 0x4a4], ebx
mov dword [esp + 0x49c], ebx
mov dword [esp + 0x4a0], ebx
mov byte [esp + 0x494], 1
call edx
test eax, eax
je 0x4f1c42
jmp 0x4f1a00
lea ecx, [esp + 0x188]
call fcn.00564e10
cmp eax, 1
je 0x4f1c42
cmp eax, 4
je 0x4f1c42
test eax, eax
jne 0x4f1c24
cmp byte [esp + 0x13], al
jne 0x4f1abb
lea eax, [esp + 0x108]
push eax
push str.Name
lea ecx, [esp + 0x190]
call fcn.00565160
test eax, eax
je 0x4f1a5c
lea ecx, [esp + 0x108]
push ecx
mov ecx, esi
call fcn.00566e70
push 0
push 0
push 0
lea edx, [esp + 0x44]
push edx
push str.Step
lea ecx, [esp + 0x19c]
call fcn.005657a0
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push str.DropoffFunction
lea ecx, [esp + 0x19c]
call fcn.005657a0
lea ecx, [esp + 0x4a0]
push str.DATA:
push ecx
call fcn.00588710
add esp, 8
test eax, eax
je 0x4f1c24
mov byte [esp + 0x13], 1
jmp 0x4f1c24
lea edx, [esp + 0x4a0]
push 0x613190
push edx
call fcn.0058e21b
mov edi, eax
add esp, 8
test edi, edi
je 0x4f1c21
lea eax, [ebx - 4]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x58]
push ecx
push 0x5bc5fc
push edi
call fcn.00589c18
add esp, 0xc
cmp eax, 1
jne 0x4f1bd0
mov eax, dword [esp + 0x30]
cmp ebx, eax
jl 0x4f1bb7
add eax, 0x80
xor ecx, ecx
mov dword [esp + 0x30], eax
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00587be5
mov ecx, dword [esp + 0x1c]
add esp, 4
xor ebx, ebx
cmp ecx, 4
mov edi, eax
jl 0x4f1b81
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea ecx, [esi + 0x18]
shr edx, 2
sub esi, edi
add edx, 1
lea eax, [edi + 8]
lea ebx, [edx*4]
fld qword [ecx - 0x18]
add eax, 0x20
fstp qword [eax - 0x28]
add ecx, 0x20
sub edx, 1
fld qword [esi + eax - 0x20]
fstp qword [eax - 0x20]
fld qword [ecx - 0x28]
fstp qword [eax - 0x18]
fld qword [ecx - 0x20]
fstp qword [eax - 0x10]
jne 0x4f1b55
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp ebx, ecx
jge 0x4f1b9e
mov edx, dword [esp + 0x14]
sub edx, edi
lea eax, [edi + ebx*8]
sub ecx, ebx
fld qword [eax + edx]
add eax, 8
sub ecx, 1
fstp qword [eax - 8]
jne 0x4f1b90
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f1baf
push eax
call fcn.0058881a
add esp, 4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edi
fld qword [esp + 0x58]
mov eax, dword [esp + 0x14]
fstp qword [eax + ebx*8]
add ebx, 1
add dword [esp + 0x20], 1
mov dword [esp + 0x18], ebx
jmp 0x4f1c08
cmp dword [0xa1a2c8], 1
jl 0x4f1c08
push 0x151
push str...Source_tire_manager.cpp
mov ecx, 0xa1a2c8
call fcn.004f3e00
mov ecx, esi
call fcn.004968f0
push eax
push edi
push str.Skipping_unexpected_data_point___s__in_tire_slip_curve___s_
push 0xa1a2c8
call fcn.004f3d30
add esp, 0x10
push 0x613190
push 0
call fcn.0058e21b
mov edi, eax
add esp, 8
test edi, edi
jne 0x4f1ae1
mov edi, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x24]
push 0x300
lea eax, [esp + 0x4a4]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0x4f1a00
fldz
fcom qword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x4f1c99
cmp dword [0xa1a2c8], 1
fstp st(0)
jl 0x4f219d
push 0x15f
push str...Source_tire_manager.cpp
mov ecx, 0xa1a2c8
call fcn.004f3e00
mov esi, dword [esi]
test esi, esi
jne 0x4f1c7d
mov esi, 0x5ad73f
push esi
push str.Tire_slip_curve_step_must_be_positive_for_curve___s_
push 0xa1a2c8
call fcn.004f3d30
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 3
jge 0x4f1cea
cmp dword [0xa1a2c8], 1
fstp st(0)
jl 0x4f219d
push 0x168
push str...Source_tire_manager.cpp
mov ecx, 0xa1a2c8
call fcn.004f3e00
mov esi, dword [esi]
test esi, esi
jne 0x4f1ccc
mov esi, 0x5ad73f
push esi
push 3
push str.Need_at_least__d_data_points_found_for_tire_slip_curve___s_
push 0xa1a2c8
call fcn.004f3d30
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x14]
fcomp qword [edi]
fnstsw ax
test ah, 0x44
jnp 0x4f1d3f
cmp dword [0xa1a2c8], 1
jl 0x4f219d
push 0x170
push str...Source_tire_manager.cpp
mov ecx, 0xa1a2c8
call fcn.004f3e00
mov esi, dword [esi]
test esi, esi
jne 0x4f1d23
mov esi, 0x5ad73f
push esi
push str.First_data_point_must_be_zero_in_tire_slip_curve___s_
push 0xa1a2c8
call fcn.004f3d30
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x20
mul edx
seto cl
mov dword [esi + 0x20], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00587be5
add esp, 4
cmp dword [esi + 0x20], 3
mov dword [esi + 0x24], eax
jle 0x4f1d7d
fld qword [edi + 0x10]
fsub qword [edi]
fadd st(0), st(0)
fld qword [edi + 0x18]
fsub qword [edi + 8]
fsubp st(1)
fmul qword [0x5bc538]
jmp 0x4f1d82
fld qword [edi + 8]
fsub qword [edi]
fldz
lea eax, [esp + 0x68]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x54], eax
xor eax, eax
lea ecx, [esp + 0x90]
lea edx, [esp + 0xb8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x18], eax
xor edi, edi
jmp 0x4f1db9
fxch st(1)
mov ecx, dword [esi + 0x20]
lea edx, [ecx - 2]
cmp eax, edx
jge 0x4f1dd6
mov edx, dword [esp + 0x14]
fld qword [edx + eax*8 + 0x10]
fsub qword [edx + eax*8]
fmul qword [0x5bc538]
jmp 0x4f1de7
add ecx, 0xffffffff
cmp eax, ecx
jge 0x4f1f83
mov edx, dword [esp + 0x14]
fld st(0)
fst qword [esp + 0x28]
lea ecx, [eax*8]
fild dword [esp + 0x18]
lea ebx, [eax + 1]
mov dword [esp + 0x20], ebx
fst qword [esp + 0x60]
fld qword [ecx + edx]
fst qword [esp + 0x18]
fld st(1)
fmul st(2)
fld st(0)
fmul st(3)
fstp qword [esp + 0x68]
fst qword [esp + 0x70]
fxch st(2)
fst qword [esp + 0x78]
fld1
fst qword [esp + 0x80]
fxch st(2)
fstp qword [esp + 0x88]
fld qword [0x5cade0]
fmul st(3), st(0)
fxch st(3)
fstp qword [esp + 0x90]
fadd st(0), st(0)
fstp qword [esp + 0x98]
fst qword [esp + 0xa0]
fxch st(3)
fst qword [esp + 0xa8]
fxch st(4)
fstp qword [esp + 0xb0]
fild dword [esp + 0x20]
fst qword [esp + 0x20]
fld qword [ecx + edx + 8]
mov edx, 4
fst qword [esp + 0x30]
lea ecx, [esp + 0x48]
fld st(1)
fmul st(2)
fld st(0)
fmul st(3)
fstp qword [esp + 0xb8]
fst qword [esp + 0xc0]
fxch st(2)
fst qword [esp + 0xc8]
fxch st(5)
fst qword [esp + 0xd0]
fxch st(1)
fstp qword [esp + 0xd8]
fxch st(1)
fmulp st(2)
fxch st(1)
fstp qword [esp + 0xe0]
fxch st(2)
fadd st(0), st(0)
fstp qword [esp + 0xe8]
fxch st(1)
fstp qword [esp + 0xf0]
fxch st(1)
fstp qword [esp + 0xf8]
fstp qword [esp + 0x100]
call fcn.00583b00
test eax, eax
jne 0x4f1f32
mov eax, dword [esi + 0x24]
fld qword [esp + 0x88]
fstp qword [edi + eax]
mov ecx, dword [esi + 0x24]
fld qword [esp + 0xb0]
add edi, 0x20
fstp qword [edi + ecx - 0x18]
mov edx, dword [esi + 0x24]
fld qword [esp + 0xd8]
fstp qword [edi + edx - 0x10]
mov eax, dword [esi + 0x24]
fld qword [esp + 0x100]
fstp qword [edi + eax - 8]
mov eax, ebx
fldz
mov dword [esp + 0x18], eax
fld qword [esp + 0x28]
jmp 0x4f1db7
mov ecx, dword [esi + 0x24]
fldz
fst qword [edi + ecx]
mov edx, dword [esi + 0x24]
fst qword [edi + edx + 8]
fld qword [esp + 0x30]
mov eax, dword [esi + 0x24]
fld qword [esp + 0x18]
fsub st(1), st(0)
fld qword [esp + 0x20]
fld qword [esp + 0x60]
fsub st(1), st(0)
fxch st(3)
fdivrp st(1)
fstp qword [edi + eax + 0x10]
mov ecx, dword [esi + 0x24]
fld qword [edi + ecx + 0x10]
lea eax, [edi + ecx]
fmulp st(2)
add edi, 0x20
fsubrp st(1)
fstp qword [eax + 0x18]
mov eax, ebx
fld qword [esp + 0x28]
mov dword [esp + 0x18], eax
jmp 0x4f1db7
mov edx, dword [esi + 0x24]
fstp st(1)
mov ebx, dword [esp + 0x14]
mov ecx, eax
shl ecx, 5
fst qword [ecx + edx]
mov edx, dword [esi + 0x24]
fst qword [ecx + edx + 8]
mov edx, dword [esi + 0x24]
fst qword [ecx + edx + 0x10]
mov edx, dword [esi + 0x24]
fld qword [ebx + eax*8]
fstp qword [ecx + edx + 0x18]
mov edi, dword [esi + 0x20]
xor edx, edx
test edi, edi
fld st(0)
fxch st(1)
mov dword [esp + 0x18], edx
fst qword [esi + 0x18]
jle 0x4f2127
mov ecx, dword [esi + 0x24]
fild dword [esp + 0x18]
fst qword [esp + 0x30]
fld st(0)
fld st(0)
fmul qword [ecx]
fadd qword [ecx + 8]
fmul st(1)
fadd qword [ecx + 0x10]
fmulp st(1)
fadd qword [ecx + 0x18]
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x4f1ff2
fstp st(3)
fst qword [esi + 0x18]
jmp 0x4f1ff4
fstp st(0)
fld qword [ecx]
fmul qword [0x5cade0]
fld st(2)
fucomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x4f20e2
fld qword [ecx + 8]
fadd st(0), st(0)
fld st(0)
fmul st(1)
fld qword [ecx + 0x10]
fmul st(3)
fmul qword [0x5ad850]
fsubp st(1)
fcom st(4)
fnstsw ax
test ah, 1
jne 0x4f20de
fsqrt
fld qword [0x5c5db0]
fdivrp st(3)
fld st(0)
fadd st(2)
fmul st(3)
fcom st(4)
fnstsw ax
test ah, 0x41
jne 0x4f208e
lea eax, [edx + 1]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4f208e
fstp st(4)
fld st(3)
fmul qword [ecx]
fadd qword [ecx + 8]
fmul st(4)
fadd qword [ecx + 0x10]
fmul st(4)
fadd qword [ecx + 0x18]
fcom st(6)
fnstsw ax
test ah, 0x41
jne 0x4f2084
fstp st(6)
fxch st(3)
fstp qword [esi + 0x18]
fld qword [esp + 0x30]
jmp 0x4f2092
fstp st(4)
fstp st(3)
fld qword [esp + 0x30]
jmp 0x4f2092
fstp st(0)
fxch st(3)
fxch st(1)
fsubrp st(3)
fxch st(2)
fmulp st(1)
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4f20e4
lea eax, [edx + 1]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4f20e4
fld st(0)
fmul qword [ecx]
fadd qword [ecx + 8]
fmul st(1)
fadd qword [ecx + 0x10]
fmul st(1)
fadd qword [ecx + 0x18]
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x4f20da
fstp st(3)
fstp qword [esi + 0x18]
jmp 0x4f20e6
fstp st(1)
jmp 0x4f20e4
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
add edx, 1
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fld st(0)
fld st(0)
fmul qword [ecx]
fadd qword [ecx + 8]
fmul st(1)
fadd qword [ecx + 0x10]
fmulp st(1)
fadd qword [ecx + 0x18]
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x4f2114
fstp st(3)
fstp qword [esi + 0x18]
jmp 0x4f2118
fstp st(0)
fstp st(0)
add ecx, 0x20
cmp edx, edi
mov dword [esp + 0x18], edx
jl 0x4f1fc7
fstp st(0)
xor edx, edx
test edi, edi
fld1
fld st(0)
fdivrp st(2)
jle 0x4f217b
xor eax, eax
mov ecx, dword [esi + 0x24]
fld qword [ecx + eax]
add ecx, eax
fmul st(2)
add edx, 1
fstp qword [ecx]
mov ecx, dword [esi + 0x24]
fld qword [eax + ecx + 8]
lea ecx, [eax + ecx + 8]
fmul st(2)
fstp qword [ecx]
mov ecx, dword [esi + 0x24]
fld qword [eax + ecx + 0x10]
lea ecx, [eax + ecx + 0x10]
fmul st(2)
fstp qword [ecx]
mov ecx, dword [esi + 0x24]
fld qword [eax + ecx + 0x18]
lea ecx, [eax + ecx + 0x18]
fmul st(2)
add eax, 0x20
fstp qword [ecx]
cmp edx, dword [esi + 0x20]
jl 0x4f2137
fstp st(1)
push ebx
fld qword [esp + 0x44]
fsub st(1), st(0)
fld qword [esp + 0x3c]
fmul qword [esi + 0x18]
fdivp st(2)
fxch st(1)
fstp qword [esi + 8]
fstp qword [esi + 0x10]
call fcn.0058881a
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4