Function at 0x474e90
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47586f
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
push esi
push edi
mov esi, ecx
push 0x1e4
call fcn.0045b6b0
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 4], 0
mov edi, eax
mov eax, 0
test edi, edi
je 0x474ede
push 0
mov ecx, edi
call fcn.00488190
mov dword [ebp - 4], 0xffffffff
push 0
mov ecx, dword [esi + 0x1c]
push ecx
mov ecx, eax
call fcn.00488260
push eax
mov ecx, esi
mov dword [esi + 0x40], eax
call fcn.004203b0
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x474f29
push str.ThrillCamera_not_created._n
lea eax, [ebp - 0xb0]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x258
call fcn.0045b6b0
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 4], 1
mov edi, eax
mov eax, 0
test edi, edi
je 0x474f54
push 1
mov ecx, edi
call fcn.00479a00
mov dword [ebp - 4], 0xffffffff
push 0
mov ecx, dword [esi + 0x1c]
push ecx
mov ecx, eax
call fcn.00479b40
push eax
mov ecx, esi
mov dword [esi + 0x44], eax
call fcn.004203b0
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x474fb2
push str.TrackCamera_not_created._n
lea eax, [ebp - 0xb0]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov edx, dword [esi + 0x30]
mov dword [ebp - 0x18], 0
mov ecx, dword [edx + 0x48]
cmp ecx, edi
jle 0x474fe7
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x474fe2
mov eax, dword [edx + 0x4c]
lea ebx, [edi + edi*4]
lea ebx, [edi + ebx*4]
lea eax, [eax + ebx*8]
mov ebx, dword [eax + 0x44]
test ebx, ebx
je 0x474fe2
mov dword [ebp - 0x18], eax
inc edi
cmp edi, ecx
jl 0x474fc5
push 0x118
call fcn.0045b6b0
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 2
mov edi, eax
mov eax, 0
test edi, edi
je 0x47501c
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x728]
push ecx
mov ecx, edi
call fcn.00498e30
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x74], eax
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
push eax
mov ecx, esi
call fcn.004203b0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax + 0x48]
test ecx, ecx
jle 0x475122
xor edi, edi
mov eax, dword [esi + 0x30]
mov ebx, dword [eax + 0x4c]
add ebx, edi
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x475107
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x47506f
add ebx, 0x68
jmp 0x475071
xor ebx, ebx
test eax, eax
je 0x47507d
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x30], eax
jmp 0x475084
mov dword [ebp - 0x30], 0
push 0xbc
call fcn.0045b6b0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x4750ad
push 1
mov ecx, eax
call fcn.004988f0
mov dword [ebp - 0x10], eax
jmp 0x4750b4
mov dword [ebp - 0x10], 0
mov eax, dword [esi + 0x30]
push ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x30]
add ecx, edi
push eax
mov edx, dword [ecx + 0x48]
mov ebx, dword [ecx + 0x38]
push edx
mov eax, dword [ecx + 0x34]
push ebx
mov edx, dword [ecx + 0x30]
push eax
lea ebx, [ecx + 8]
push edx
mov eax, dword [ecx + 4]
push ebx
mov ecx, dword [ecx]
push eax
mov edx, dword [esi + 0x1c]
push ecx
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00498cc0
push eax
mov ecx, esi
call fcn.004203b0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x475107
push ecx
mov ecx, dword [esi + 0x74]
call fcn.00498f60
add edi, 0xa8
mov eax, dword [ebp - 0x2c]
inc eax
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x2c], eax
mov edx, dword [ecx + 0x48]
cmp edx, eax
jg 0x475050
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
push 8
mov edi, dword [eax + 0x304]
mov eax, dword [eax + 0x310]
mov edx, edi
shl edi, 3
sub edi, edx
mov ebx, dword [eax + edi*4 + 0x18]
call fcn.004936e0
test eax, eax
je 0x475179
xor edi, edi
mov eax, dword [0x4e2fdc]
add eax, 0x1350
mov ecx, dword [eax]
cmp ecx, ebx
jl 0x475164
add eax, 4
inc edi
cmp edi, 6
jl 0x475155
cmp edi, 6
jne 0x4751a1
dec edi
jmp 0x4751a1
mov edi, 1
mov eax, dword [0x4e2fdc]
add eax, 0x1354
mov ecx, dword [eax]
cmp ecx, ebx
jl 0x475199
add eax, 8
add edi, 2
cmp edi, 6
jl 0x475188
cmp edi, 6
jl 0x4751a1
sub edi, 2
mov eax, dword [0x4e2fdc]
cmp edi, 5
mov ecx, dword [eax + 4]
mov edx, dword [eax + edi*4 + 0x1350]
mov ebx, dword [ecx + 0x390]
lea ebx, [edx + ebx*4]
ja case.default.0x4751be
jmp dword [edi*4 + 0x475888]
mov eax, 8
xor ecx, ecx
mov dword [ebp - 0x20], eax
jmp 0x475227
mov eax, 0x235
xor ecx, ecx
mov dword [ebp - 0x20], eax
jmp 0x475227
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], 0
mov eax, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
jmp case.default.0x4751be
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], 0
mov eax, 0x235
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
jmp case.default.0x4751be
mov eax, 8
jmp 0x47521f
mov eax, 0x235
mov ecx, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
push 0xc8
call fcn.0045b6b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x475256
push 1
mov ecx, eax
call fcn.00454a80
jmp 0x475258
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x30]
push 0x3f800000
mov ecx, dword [ecx + 0x54]
push 0x44c80000
push 0
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx]
push edx
push 0x43b40000
push 0
mov edx, dword [esi + 0x1c]
push 0x3f800000
push 0x44c80000
push 0x4407c000
push ecx
push edx
mov ecx, eax
call fcn.00454b60
push eax
mov ecx, esi
mov dword [esi + 0x6c], eax
call fcn.004203b0
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x4752d0
push str.Haze_not_created._n
lea eax, [ebp - 0xb0]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4df470
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004bd1c0
add esp, 8
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x2c], eax
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx + 0x1b4]
cmp eax, 0x280
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x72c]
jg 0x47530e
mov edx, dword [ecx*4 + 0x4e5578]
jmp 0x475315
mov edx, dword [ecx*4 + 0x4e5598]
push 0xa08
mov dword [ebp - 0x14], edx
call fcn.0045b6b0
add esp, 4
mov ecx, 0
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 5
je 0x475343
push 1
mov ecx, eax
call fcn.0040fd10
mov ecx, eax
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
push edx
push eax
push 1
mov edx, dword [esi + 0x34]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [esi + 0x1c]
push edx
call fcn.0040fe90
push eax
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.004203b0
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x475385
push str.Terrain_not_created._n
jmp 0x474f83
mov edx, dword [0x4e2fdc]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x618]
mov dword [edx + 0x158], eax
mov dword [edx + 0x15c], ecx
add edx, 0x158
mov eax, dword [0x4e2fdc]
mov edx, dword [ebp - 0x14]
nop
mov ecx, dword [eax + 0x618]
mov eax, dword [ebp - 0x18]
test eax, eax
nop
mov dword [ecx + 0x160], edx
je 0x475458
push 0x60d4
call fcn.0045b6b0
add esp, 4
mov ecx, 0
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 6
je 0x475400
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x714]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0047e480
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
push 0
mov eax, dword [esi + 0x48]
push eax
mov edx, dword [esi + 0x34]
push pe_nt_image_headers32
mov eax, dword [esi + 0x1c]
push 0
push edx
push eax
call fcn.0047e590
push eax
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.004203b0
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x475458
push str.Terrain_Shadow_not_created._n
lea eax, [ebp - 0xb0]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.particle.cmp
lea eax, [ebp - 0x2b8]
push str.maps
push 0x4df954
push eax
call fcn.004bd200
add esp, 0x10
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x2b8]
nop
push eax
push ecx
mov ecx, dword [0x4e2fdc]
add ecx, 0x624
call fcn.00429340
lea ecx, [ebp - 0x1b4]
push ecx
mov ecx, dword [0x4e3668]
call fcn.0045b900
push str.particle.tex
lea ecx, [ebp - 0x2b8]
push str.maps
push 0x4df954
push ecx
call fcn.004bd200
add esp, 0x10
lea ecx, [ebp - 0x1b4]
lea edx, [ebp - 0x2b8]
nop
push ecx
push edx
mov ecx, dword [0x4e2fdc]
add ecx, 0x624
call fcn.00429340
lea ecx, [ebp - 0x1b4]
push ecx
mov ecx, dword [0x4e3668]
call fcn.0045b900
push 0x21424
call fcn.0045b6b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x475536
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x718]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0043a4e0
jmp 0x475538
xor eax, eax
mov dword [ebp - 4], 0xffffffff
push 0x158
mov dword [esi + 0x68], eax
call fcn.0045b6b0
add esp, 4
mov ecx, 0
mov dword [ebp - 0x14], eax
test eax, eax
mov dword [ebp - 4], 8
je 0x47556d
push 1
mov ecx, eax
call fcn.004b8b00
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [0x4e2fdc]
fld dword [edx + 0x40]
fmul dword [0x4d61ac]
sub esp, 4
mov edx, dword [eax + 0x2e0]
mov eax, dword [esi + 0x74]
nop
push edx
push eax
fstp dword [esp + 8]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x1c]
push edx
push eax
call fcn.004b8c60
push eax
mov ecx, esi
mov dword [esi + 0x38], eax
call fcn.004203b0
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x4755c9
push str.Stadium_not_loaded._n
jmp 0x474f83
push 0x18cc
call fcn.0045b6b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x4755ef
push 0
mov ecx, eax
call fcn.00455190
jmp 0x4755f1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov dword [esi + 0x3c], eax
mov eax, dword [esi]
call dword [eax + 0x50]
test eax, eax
je 0x474f9f
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x47563c
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x48]
mov eax, dword [eax + 0x44]
add eax, 0x30c
push eax
mov eax, dword [edx + 0x38]
push eax
mov edx, dword [esi + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x50]
mov dword [esi + 0x68], eax
test eax, eax
je 0x47563c
push eax
mov ecx, esi
call fcn.004203b0
mov ecx, esi
call fcn.004758b0
push edi
mov eax, dword [esi + 0x64]
push eax
mov ecx, dword [esi + 0x30]
push 0
mov edx, dword [esi + 0x40]
push ebx
mov eax, dword [esi + 0x44]
push ecx
push edx
push eax
mov ecx, dword [esi + 0x48]
push ecx
mov edx, dword [esi + 0x74]
push edx
mov eax, dword [esi + 0x68]
push eax
mov ecx, dword [esi + 0x34]
push ecx
mov edx, dword [esi + 0x1c]
push edx
mov ecx, dword [esi + 0x3c]
call fcn.00455290
push eax
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.004203b0
test eax, eax
jne 0x47568c
push str.BikeRace_create_failed._n
jmp 0x474f83
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x475696
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [esi + 0x3c]
call fcn.00420430
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x40]
mov dword [ecx + 0x1d0], eax
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [esi + 0x44]
call fcn.0047cc40
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x1cc], edx
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x44]
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x1ec], eax
mov dword [ecx + 0x20c], 0
mov edx, dword [esi + 0x3c]
mov ecx, dword [edx + 0x30]
call fcn.0044ed20
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + 0x30]
mov ecx, dword [edx + 0xc8c]
call fcn.0044ed20
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x54]
call fcn.004235b0
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x47573f
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + 0x30]
push edx
call fcn.0041f340
push 1
mov eax, dword [ebp - 0x18]
add eax, 0x24
mov ecx, dword [esi + 0x64]
push eax
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
call fcn.0041f5a0
push pe_nt_image_headers32
mov ecx, dword [esi + 0x64]
call fcn.0041f370
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x47575a
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + 0x4c]
push edx
call fcn.004b8ea0
test eax, eax
je 0x474f9f
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x6f0]
test ecx, ecx
jne 0x475775
push str.InstrumentOverlay
mov ecx, esi
call fcn.00420130
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x724]
test ecx, ecx
jne 0x475790
push str.Stadium
mov ecx, esi
call fcn.00420130
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x718]
test ecx, ecx
jne 0x4757b7
push str.ParticleManager
mov ecx, esi
call fcn.00420130
push str.DirtParticleEmitter
mov ecx, esi
call fcn.00420130
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x714]
test ecx, ecx
jne 0x4757d2
push str.TerrainShadow
mov ecx, esi
call fcn.00420130
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4757f4
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x724]
test ecx, ecx
je 0x4757f4
mov dword [eax + 0x131c], 0
jmp 0x475803
mov eax, dword [0x4e2fdc]
mov dword [eax + 0x131c], 1
mov dword [esi + 0x4c], 1
mov eax, 1
jmp 0x474fa1