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

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc4]
mov dword [esp + 0xc0], esi
call fcn.00401920
mov ebp, dword [esp + 0x130]
mov ebx, dword [esp + 0x134]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc8], ecx
mov ecx, dword [ebx]
mov dword [esp + 0xcc], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0xd0], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xd4], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], eax
lea edx, [esp + 0x68]
mov dword [esp + 0xe0], ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0xd8]
push eax
lea edx, [esp + 0xcc]
push ecx
push edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.004af770
xor edi, edi
push edi
push str.Rail_Max_Snap
call fcn.004196d0
fld dword [esp + 0x60]
fsub st(1)
mov ecx, dword [esi + 0x50]
add esp, 0x18
xor al, al
cmp ecx, edi
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fsub st(1)
mov dword [esp + 0x44], 0x4b189680
mov dword [esp + 0x88], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], 0x3f800000
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fsub st(1)
mov byte [esp + 0x13], al
mov dword [esp + 0x8c], edi
fstp dword [esp + 0x50]
fld dword [esp + 0x68]
fadd st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0x6c]
fadd st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x70]
fadd st(1)
fstp dword [esp + 0x70]
fstp st(0)
jle 0x4b0dd6
mov dword [esp + 0x3c], edi
mov esi, dword [esi]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x140]
add esi, ecx
cmp esi, eax
je 0x4b0d68
mov al, byte [esi + 0x3b]
shr eax, 2
test al, 1
je 0x4b0d68
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4b0d68
fld dword [esp + 0x48]
fld dword [esi + 0x10]
fcompp
fnstsw ax
test ah, 5
jnp 0x4b0d68
fld dword [esp + 0x68]
fld dword [esi]
fcompp
fnstsw ax
and eax, 0x4100
je 0x4b0d68
fld dword [esp + 0x50]
fld dword [esi + 0x18]
fcompp
fnstsw ax
test ah, 5
jnp 0x4b0d68
fld dword [esp + 0x70]
fld dword [esi + 8]
fcompp
fnstsw ax
and eax, 0x4100
je 0x4b0d68
fld dword [esp + 0x4c]
fld dword [esi + 0x14]
fcompp
fnstsw ax
test ah, 5
jnp 0x4b0d68
fld dword [esp + 0x6c]
fld dword [esi + 4]
fcompp
fnstsw ax
and eax, 0x4100
je 0x4b0d68
lea ecx, [esp + 0xa0]
call fcn.00401920
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x20]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0xa0], ecx
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
add eax, 0x20
mov dword [esp + 0xa4], edx
mov dword [esp + 0xac], ecx
sub esp, 0x10
mov edx, dword [eax]
mov dword [esp + 0xc0], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xc4], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xc8], edx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xcc], ecx
mov ecx, esp
push eax
call fcn.00499d60
sub esp, 0x10
mov ecx, esp
push edi
call fcn.00499d60
call fcn.004b0f30
add esp, 0x20
test al, al
je 0x4b0d68
lea edx, [esp + 0x114]
push 1
lea eax, [esp + 0x11c]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0xb0]
push edx
lea ecx, [esp + 0xd8]
push eax
push ecx
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0x3f800000
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0x3f800000
call fcn.00401950
add esp, 0x1c
test al, al
je 0x4b0d68
fld dword [esp + 0x64]
fsub dword [esp + 0x9c]
sub esp, 0x10
lea ecx, [esp + 0x12c]
fstp dword [esp + 0xc]
fld dword [esp + 0x70]
fsub dword [esp + 0xa8]
fstp dword [esp + 8]
fld dword [esp + 0x6c]
fsub dword [esp + 0xa4]
fstp dword [esp + 4]
fld dword [esp + 0x68]
fsub dword [esp + 0xa0]
fstp dword [esp]
call fcn.0045dab0
lea ecx, [esp + 0x11c]
call fcn.00403940
fsqrt
sub esp, 0x10
lea ecx, [esp + 0x104]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3f800000
fst dword [esp + 0x24]
fstp dword [esp + 0x50]
fld dword [esp + 0xcc]
fsub dword [esp + 0xbc]
fstp dword [esp + 0xc]
fld dword [esp + 0xc8]
fsub dword [esp + 0xb8]
fstp dword [esp + 8]
fld dword [esp + 0xc4]
fsub dword [esp + 0xb4]
fstp dword [esp + 4]
fld dword [esp + 0xc0]
fsub dword [esp + 0xb0]
fstp dword [esp]
call fcn.0045dab0
fld dword [ebx + 0xc]
fsub dword [ebp + 0xc]
sub esp, 0x10
mov edx, dword [esp + 0x104]
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x110]
fstp dword [esp + 0xc]
fld dword [ebx + 8]
fsub dword [ebp + 8]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x114]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], edx
fstp dword [esp + 8]
fld dword [ebx + 4]
fsub dword [ebp + 4]
fstp dword [esp + 4]
fld dword [ebx]
fsub dword [ebp]
fstp dword [esp]
call fcn.0045dab0
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x104]
mov edx, dword [esp + 0x110]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
call fcn.00403940
fsqrt
fcom dword [0x589284]
fnstsw ax
and eax, 0x4100
jne 0x4b0bac
fdivr dword [0x589288]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x34]
fstp st(0)
lea ecx, [esp + 0x1c]
call fcn.00403940
fsqrt
fcom dword [0x589284]
fnstsw ax
and eax, 0x4100
jne 0x4b0bec
fdivr dword [0x589288]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fstp st(0)
fld dword [esp + 0x1c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x30]
faddp st(1)
fabs
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fcomp dword [0x589284]
fnstsw ax
test ah, 0x44
jp 0x4b0c4b
fld dword [esp + 0x24]
fcomp dword [0x589284]
fnstsw ax
test ah, 0x44
jp 0x4b0c4b
fld dword [esp + 0x18]
fcomp dword [0x589284]
fnstsw ax
test ah, 0x44
jp 0x4b0c4b
mov dword [esp + 0x18], 0x3f800000
fld dword [0x58af54]
fsub dword [esp + 0x18]
mov edi, dword [esp + 0x148]
test edi, edi
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [0x5892e8]
fsub dword [esp + 0x18]
fmul dword [esp + 0x40]
fstp dword [esp + 0x40]
je 0x4b0cca
fld dword [ebx]
fsub dword [ebp]
lea eax, [esp + 0xe4]
mov ecx, esi
push eax
fstp dword [esp + 0xe8]
fld dword [ebx + 4]
fsub dword [ebp + 4]
fstp dword [esp + 0xec]
fld dword [ebx + 8]
fsub dword [ebp + 8]
fstp dword [esp + 0xf0]
fld dword [ebx + 0xc]
fsub dword [ebp + 0xc]
fstp dword [esp + 0xf4]
call fcn.004b0330
cmp eax, edi
je 0x4b0cca
fld dword [esp + 0x14]
fadd st(0), st(0)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 5
jp 0x4b0d68
fld dword [esp + 0x144]
fcomp dword [0x589288]
fnstsw ax
test ah, 0x44
jnp 0x4b0d05
fld dword [esp + 0x18]
fabs
fcomp dword [esp + 0x144]
fnstsw ax
test ah, 5
jnp 0x4b0d68
push 0
push str.Rail_Max_Snap
call fcn.004196d0
fcomp dword [esp + 0x48]
add esp, 8
fnstsw ax
test ah, 5
jp 0x4b0d2e
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
mov dword [esp + 0x44], ecx
jmp 0x4b0d68
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], esi
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0xc0]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x3c]
inc eax
mov ecx, dword [esi + 0x50]
add edx, 0x3c
cmp eax, ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x3c], edx
jl 0x4b0821
mov cl, byte [esp + 0x13]
test cl, cl
je 0x4b0dd4
mov eax, dword [esp + 0x138]
mov edx, dword [esp + 0x7c]
fld dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x80]
fstp dword [eax]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x13c]
mov edx, dword [esp + 0x88]
mov dword [eax], edx
mov al, cl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 0x1c