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

Disassembly:
push 0xffffffffffffffff
push 0x585b7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x3c], esi
mov eax, dword [esi + 0x3520]
cmp eax, 1
je 0x4c62af
mov al, byte [esp + 0x160]
test al, al
je 0x4c6728
mov al, byte [esi + 0x3464]
test al, al
jne 0x4c6728
mov al, byte [esi + 0x2880]
test al, al
jne 0x4c6728
mov al, byte [esi + 0x8e8]
test al, al
je 0x4c6728
mov eax, dword [esi + 0x634]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x3f800000
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [0xb07d40]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3f800000
mov ecx, dword [eax + 0x90]
mov dword [esp + 0x28], 0x3f800000
cmp ecx, 0xd443a2bc
je 0x4c63c9
call fcn.00543e40
mov edx, dword [esi + 0x37c8]
mov ecx, dword [esi + 0x3528]
sub eax, edx
cmp eax, ecx
jae 0x4c63c9
push 0
push str.Rail_Corner_Leave_Angle
call fcn.004196d0
fmul dword [0x58af60]
add esp, 8
fmul dword [0x5892f8]
fcos
fstp dword [esp + 0x28]
mov ecx, dword [0xab5b48]
mov edx, dword [esp + 0x28]
push 0
push edx
mov edi, dword [ecx + 0x34]
lea eax, [esp + 0x2c]
push 0
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, edi
call fcn.004b06c0
test al, al
je 0x4c642c
mov ecx, dword [esi + 0x36cc]
test ecx, ecx
je 0x4c6415
push 1
call fcn.004c6220
mov dword [esi + 0x36cc], 0
mov ecx, dword [esp + 0x24]
push edi
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.004c6750
jmp 0x4c6728
call fcn.00462110
mov ebx, dword [eax + 0xc]
cmp dword [ebx + 4], 0xffffffff
je 0x4c6728
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x4c6728
jmp 0x4c6450
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x40]
mov edi, eax
test edi, edi
je 0x4c6662
push fcn.00402a70
push 4
lea ecx, [esp + 0xa8]
push 0x10
push ecx
call fcn.00404450
lea edx, [esi + 0x554]
lea ecx, [esp + 0xa0]
push edx
call fcn.00403a00
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0xd4], ecx
push eax
mov ecx, edi
mov dword [esp + 0xb0], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], 0x3f800000
call fcn.004b0650
lea ebp, [esp + 0x60]
mov ebx, 4
mov ecx, ebp
call fcn.00402a70
add ebp, 0x10
dec ebx
jne 0x4c64ef
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x64]
call fcn.00403a00
push fcn.00402a70
push 4
lea edx, [esp + 0x118]
push 0x10
push edx
call fcn.00404450
lea eax, [esp + 0x60]
lea ecx, [esp + 0x110]
push eax
call fcn.00404d60
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x64]
call fcn.00403a00
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x4c], 0x3f800000
call fcn.00402a70
fld dword [esp + 0x80]
fmul dword [esp + 0x18]
fld dword [esp + 0x70]
fmul dword [esp + 0x14]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xe0]
push edx
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x14]
faddp st(1)
fadd dword [esp + 0x94]
fstp dword [esp + 0x54]
fld dword [esp + 0x88]
fmul dword [esp + 0x1c]
fld dword [esp + 0x78]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x68]
fmul dword [esp + 0x14]
faddp st(1)
fadd dword [esp + 0x98]
fstp dword [esp + 0x58]
fld dword [esp + 0x8c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x7c]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x6c]
fmul dword [esp + 0x14]
faddp st(1)
fadd dword [esp + 0x9c]
fstp dword [esp + 0x5c]
fld dword [esp + 0x90]
fmul dword [esp + 0x1c]
fld dword [esp + 0x80]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0x14]
faddp st(1)
fadd dword [esp + 0xa0]
fstp dword [esp + 0x60]
call fcn.00499d60
lea eax, [esp + 0x40]
lea ecx, [esp + 0xf0]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00402b10
mov edx, dword [esp + 0x28]
push 0
push edx
lea eax, [esp + 0x2c]
push 0
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x104]
lea eax, [esp + 0xf4]
push edx
push eax
mov ecx, edi
call fcn.004b06c0
test al, al
jne 0x4c6680
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + 0xc]
cmp dword [ebx + 4], 0xffffffff
je 0x4c6728
test ebx, ebx
mov dword [esp + 0x20], ebx
jne 0x4c644c
jmp 0x4c6728
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x100]
push ecx
push edx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x40], 0x3f800000
call fcn.00402b10
mov ecx, dword [eax]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x44], edx
call fcn.004c6750
mov ecx, ebx
call fcn.004c61c0
push 0
push 1
push 0xb0
call fcn.00401180
mov ecx, eax
call fcn.00533b80
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
mov dword [esp + 0x158], 0
je 0x4c6720
sub esp, 0x10
lea edx, [esp + 0x3c]
mov dword [esp + 0x30], esp
mov ecx, esp
push edx
call fcn.00499d60
push esi
mov ecx, edi
call fcn.005056a0
jmp 0x4c6722
xor eax, eax
mov dword [ebx + 0x36cc], eax
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14c
ret 4