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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x32c8]
mov ebp, 3
cmp ecx, ebp
push edi
je 0x4bc97a
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x4bc8b2
mov eax, dword [esi + 8]
cmp eax, 0x7f
mov dword [esi + 0xc], edi
jge 0x4bc619
mov edi, eax
test edi, edi
jl 0x4bc5e9
cmp edi, dword [esi + 0x88]
jge 0x4bc5e9
fld dword [esp + 0x64]
fcomp dword [0x59e440]
fnstsw ax
test ah, 0x41
jne 0x4bc5d0
mov ecx, dword [esi + 0x90]
fld dword [esp + 0x64]
fstp dword [ecx + edi*4]
fld dword [esi + 0x68]
fcomp dword [0x59e440]
fnstsw ax
test ah, 5
jnp 0x4bc56f
fld dword [esp + 0x64]
fcomp dword [esi + 0x68]
fnstsw ax
test ah, 5
jp 0x4bc598
mov eax, dword [esi + 0x64]
mov edx, dword [esp + 0x64]
mov ecx, dword [esi]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x68], edx
mov edx, dword [ecx + 0x4894]
push 0
push edx
push eax
mov ecx, 0x8acee0
call fcn.004d1c40
fld dword [esi + 0x74]
mov ecx, dword [esp + 0x64]
fcomp dword [0x59e440]
mov dword [esi + 0x18], ecx
fnstsw ax
test ah, 0x41
jnp 0x4bc5bd
fld dword [esi + 0x74]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 0x41
jne 0x4bc5d0
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
nop
xor edx, edx
mov dl, byte [esi + 4]
mov ecx, 0x8acee0
push edx
call fcn.004d1bc0
mov ecx, dword [esi + 0x94]
mov byte [edi + ecx], al
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x4bc876
mov edx, dword [esp + 0x70]
lea eax, [edx + 1]
mov dword [esi + 8], eax
mov edx, dword [0x7c56a4]
cmp edx, 7
mov ebx, 1
ja case.default.0x4bc612
jmp dword [edx*4 + 0x4bc984]
mov edi, 0x7f
jmp 0x4bc523
cmp dword [0x7c56a8], 8
jne 0x4bc646
cmp dword [esi + 0x30], ebp
je 0x4bc634
mov dword [esi + 0x30], ebx
fld dword [0x8acf90]
fsubr dword [esp + 0x68]
fstp dword [esi + 0x84]
jmp 0x4bc69f
cmp eax, dword [0x8acf8c]
jge 0x4bc67b
fld dword [0x8acf94]
fcomp dword [esp + 0x68]
fnstsw ax
test ah, 0x41
jnp 0x4bc67b
mov ecx, dword [esi]
push ecx
mov ecx, 0x7ce24c
call fcn.004a0b20
mov edx, dword [esi]
push edx
mov ecx, 0x5eb978
call fcn.004199e0
jmp 0x4bc6ac
cmp dword [esi + 0x30], ebp
je 0x4bc683
mov dword [esi + 0x30], ebx
fld dword [0x8acf90]
push 8
fsubr dword [esp + 0x6c]
mov ecx, 0x7c569c
fstp dword [esi + 0x84]
call fcn.0042d140
mov eax, dword [esi]
mov ecx, 0x7ce24c
push eax
call fcn.004a0ba0
mov eax, dword [esi + 0x3c]
xor ebp, ebp
test eax, eax
jle case.default.0x4bc612
lea edi, [esi + 0x40]
lea esp, [esp]
mov eax, dword [edi]
test eax, eax
je 0x4bc6db
cmp eax, ebx
jne 0x4bc6d6
mov ecx, dword [esi]
mov dl, byte [ecx + 0x344c]
test dl, dl
je 0x4bc6db
dec eax
mov dword [edi], eax
jmp 0x4bc6fd
mov edx, dword [esi]
mov eax, dword [edx + 0x32c8]
test eax, eax
je 0x4bc6eb
cmp eax, ebx
jne 0x4bc6f7
push str.Ignored_Stop_Go_Penalty
mov ecx, esi
call fcn.004bc0e0
mov dword [edi], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4bc71e
mov eax, dword [edi + 4]
add eax, 0xf
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
fadd dword [esi + 0x84]
fstp dword [esi + 0x84]
mov eax, dword [esi + 0x3c]
inc ebp
add edi, 8
cmp ebp, eax
jl 0x4bc6c0
jmp case.default.0x4bc612
cmp dword [esi + 0x30], ebx
jne 0x4bc7c4
cmp edx, 5
jne case.default.0x4bc612
cmp eax, dword [0x8acf8c]
jle case.default.0x4bc612
mov eax, dword [0x7ce814]
test eax, eax
je case.default.0x4bc612
mov ecx, dword [esi]
mov eax, dword [ecx + 0x32c8]
test eax, eax
je 0x4bc76d
cmp eax, ebx
jne case.default.0x4bc612
push 0x5ec4cc
push str.Laps
mov ecx, 0x5ec4c0
call fcn.00423a00
test eax, eax
je 0x4bc798
xor eax, eax
mov cl, byte [eax + str.Laps]
mov byte [eax + 0x5ec4cc], cl
inc eax
test cl, cl
jne 0x4bc787
mov edx, dword [esi + 8]
push 0x5ec4cc
push edx
lea eax, [esp + 0x18]
push 0x5c3778
push eax
call fcn.0058815f
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004bc0e0
jmp case.default.0x4bc612
cmp ecx, 2
jne 0x4bc7dc
mov edx, dword [esi]
push edx
mov ecx, 0x5eb978
call fcn.004199e0
mov edx, dword [0x7c56a4]
mov ecx, dword [esi + 8]
cmp ecx, dword [0x8acf8c]
jge 0x4bc7f8
fld dword [0x8acf94]
fcomp dword [esp + 0x68]
fnstsw ax
test ah, 0x41
jp 0x4bc806
cmp dword [esi + 0x30], ebp
je 0x4bc806
mov dword [esi + 0x30], ebx
mov edx, dword [0x7c56a4]
mov eax, dword [0x8acf8c]
dec eax
cmp ecx, eax
jge 0x4bc821
fld dword [0x8acf94]
fcomp dword [esp + 0x68]
fnstsw ax
test ah, 0x41
jp case.default.0x4bc612
cmp edx, 5
jne case.default.0x4bc612
mov ecx, dword [0x7c54e4]
mov edx, dword [ecx*4 + 0x7c54f0]
mov eax, dword [esi + 4]
cmp eax, dword [edx + 0x4894]
jne case.default.0x4bc612
mov ecx, 0x7ce24c
call fcn.004a0c60
jmp case.default.0x4bc612
mov ecx, dword [esi]
push ecx
mov ecx, 0x5eb978
call fcn.004199e0
mov al, byte [0x8acfa0]
test al, al
jne 0x4bc876
mov edx, dword [0x8acf8c]
mov eax, dword [esi + 8]
inc edx
sar edx, 1
cmp eax, edx
jl 0x4bc876
mov byte [0x8acfa0], bl
mov eax, dword [esp + 0x68]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 8]
test eax, eax
mov dword [esi + 0x60], 2
jle 0x4bc8a1
cmp eax, dword [esi + 0x88]
jg 0x4bc8a1
mov ecx, dword [esi + 0x8c]
fld dword [esp + 0x68]
fstp dword [ecx + eax*4 - 4]
mov ecx, esi
call fcn.004bc240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
fld dword [esp + 0x64]
mov dword [esi + 0xc], edi
fcomp dword [0x59e440]
fnstsw ax
test ah, 0x41
jne 0x4bc923
fld dword [esi + edi*4 + 0x68]
fcomp dword [0x59e440]
fnstsw ax
test ah, 5
jnp 0x4bc8e6
fld dword [esp + 0x64]
fcomp dword [esi + edi*4 + 0x68]
fnstsw ax
test ah, 5
jp 0x4bc8ee
fld dword [esp + 0x64]
fstp dword [esi + edi*4 + 0x68]
mov edx, dword [esi + 0xc]
fld dword [esp + 0x64]
fstp dword [esi + edx*4 + 0x18]
mov eax, dword [esi]
mov ecx, dword [eax + 0x4894]
mov edx, dword [esi + 0xc]
push 0
push ecx
push edx
mov ecx, 0x8acee0
call fcn.004d1c40
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, 0x5eb978
call fcn.00419500
mov eax, dword [esi + 0x60]
test eax, eax
mov ebx, 1
jne 0x4bc937
cmp dword [esi + 0xc], ebx
jne 0x4bc937
mov dword [esi + 0x60], ebx
cmp edi, 2
jne 0x4bc963
mov edx, dword [esi + 0x3c]
xor eax, eax
test edx, edx
jle 0x4bc963
lea ecx, [esi + 0x40]
cmp dword [ecx], ebx
je 0x4bc956
inc eax
add ecx, 8
cmp eax, edx
jl 0x4bc948
jmp 0x4bc963
mov edx, dword [esi]
push edx
mov ecx, 0x5eb978
call fcn.0041a8c0
mov esi, dword [esi]
mov eax, dword [esi + 0x32c8]
test eax, eax
jne 0x4bc97a
lea ecx, [esi + 0x32cc]
call fcn.004a6d50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10