Function at 0x480010
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480b4c
push eax
mov dword fs:[0], esp
sub esp, 0x2b4
push ebx
push esi
push edi
mov esi, ecx
push 0x1e4
call fcn.0045b6b0
mov dword [ebp - 0x1c], eax
add esp, 4
mov dword [ebp - 4], 0
mov edi, eax
mov eax, 0
test edi, edi
je 0x48005e
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 0x4800a9
push str.ThrillCamera_not_created._n
lea eax, [ebp - 0xb8]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x258
call fcn.0045b6b0
mov dword [ebp - 0x1c], eax
add esp, 4
mov dword [ebp - 4], 1
mov edi, eax
mov eax, 0
test edi, edi
je 0x4800d4
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 0x480132
push str.TrackCamera_not_created._n
lea eax, [ebp - 0xb8]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb8]
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
mov dword [ebp - 0x10], 0
xor edx, edx
mov edi, dword [esi + 0x30]
mov dword [ebp - 0x1c], 0
mov ecx, dword [edi + 0x48]
cmp ecx, edx
jle 0x48018b
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x480169
mov eax, dword [edi + 0x4c]
lea ebx, [edx + edx*4]
lea ebx, [edx + ebx*4]
lea eax, [eax + ebx*8]
mov ebx, dword [eax + 0x44]
test ebx, ebx
je 0x480169
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x480186
mov eax, dword [edi + 0x4c]
lea ebx, [edx + edx*4]
lea ebx, [edx + ebx*4]
lea eax, [eax + ebx*8]
mov ebx, dword [eax + 0x48]
test ebx, ebx
je 0x480186
mov dword [ebp - 0x10], eax
inc edx
cmp ecx, edx
jg 0x48014c
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 0x4801c0
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x728]
push ecx
mov ecx, edi
call fcn.00498e30
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [eax]
push ecx
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 0x4802c5
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 0x4802aa
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x480213
add ebx, 0x68
jmp 0x480215
xor ebx, ebx
test eax, eax
je 0x480221
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x38], eax
jmp 0x480228
mov dword [ebp - 0x38], 0
push 0xbc
call fcn.0045b6b0
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x480251
push 1
mov ecx, eax
call fcn.004988f0
mov dword [ebp - 0x10], eax
jmp 0x480258
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 - 0x38]
add ecx, edi
push eax
push 0
nop
mov ebx, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ecx + 0x30]
push ebx
lea edx, [ecx + 8]
push eax
mov ebx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push ebx
mov ecx, dword [esi + 0x1c]
push eax
push ecx
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 0x4802aa
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 0x4801f4
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 edi, dword [eax + edi*4 + 0x18]
call fcn.004936e0
test eax, eax
je 0x48033b
xor ebx, ebx
mov eax, dword [0x4e2fdc]
add eax, 0x1338
mov ecx, dword [eax]
cmp ecx, edi
jl 0x480307
add eax, 4
inc ebx
cmp ebx, 6
jl 0x4802f8
cmp ebx, 6
jne 0x48030d
dec ebx
mov eax, dword [0x4e2fdc]
mov edx, dword [eax + 4]
mov ecx, dword [edx + 0x390]
mov edx, dword [eax + ebx*4 + 0x1338]
shl ecx, 2
sub ecx, edx
add ecx, edi
mov dword [ebp - 0x28], ecx
jmp 0x480388
mov ebx, 1
mov eax, dword [0x4e2fdc]
add eax, 0x133c
mov ecx, dword [eax]
cmp ecx, edi
jl 0x48035b
add eax, 8
add ebx, 2
cmp ebx, 6
jl 0x48034a
cmp ebx, 6
jl 0x480363
sub ebx, 2
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x370]
mov ecx, dword [0x4e2fdc]
shl eax, 2
mov edx, dword [ecx + ebx*4 + 0x1338]
sub eax, edx
add eax, edi
mov dword [ebp - 0x28], eax
cmp ebx, 5
ja case.default.0x48038d
jmp dword [ebx*4 + 0x480b64]
mov eax, 8
xor ecx, ecx
mov dword [ebp - 0x24], eax
jmp 0x4803f6
mov eax, 0x235
xor ecx, ecx
mov dword [ebp - 0x24], eax
jmp 0x4803f6
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 1
mov eax, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], eax
jmp case.default.0x48038d
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 1
mov eax, 0x235
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], eax
jmp case.default.0x48038d
mov eax, 8
jmp 0x4803ee
mov eax, 0x235
mov ecx, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
push 0x9c
call fcn.0045b6b0
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 4
mov edi, eax
mov eax, 0
test edi, edi
je 0x48042a
push 1
mov ecx, edi
call fcn.0043de30
mov dword [ebp - 4], 0xffffffff
push 0x3f800000
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx + 0x50]
push 0x44400000
push 0x43000000
mov ecx, dword [edx]
mov edx, dword [esi + 0x1c]
push ecx
push edx
mov ecx, eax
call fcn.0043df70
push eax
mov ecx, esi
mov dword [ebp - 0x2c], eax
call fcn.004203b0
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x48048b
push str.Fog_not_created._n
lea eax, [ebp - 0xb8]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb8]
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 dword [ebp - 0x38], eax
test eax, eax
je 0x48011f
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [0x4e2fdc]
mov edx, dword [ecx + 0x1b4]
mov ecx, dword [eax + 0x72c]
cmp edx, 0x280
jg 0x4804d2
mov edi, dword [ecx*4 + 0x4e5cc0]
jmp 0x4804d9
mov edi, dword [ecx*4 + 0x4e5ce0]
push 0xa08
call fcn.0045b6b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x480502
push 1
mov ecx, eax
call fcn.0040fd10
jmp 0x480504
xor eax, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
push ecx
mov edx, dword [esi + 0x34]
push 1
mov ecx, dword [ebp - 0x38]
push edx
push ecx
mov edx, dword [esi + 0x1c]
mov ecx, eax
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 0x480545
push str.Terrain_not_created._n
jmp 0x480103
mov edx, dword [0x4e2fdc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edx + 0x618]
mov dword [edx + 0x158], eax
mov dword [edx + 0x15c], ecx
add edx, 0x158
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x618]
mov eax, dword [ebp - 0x1c]
test eax, eax
nop
mov dword [ecx + 0x160], edi
je 0x480615
push 0x60d4
call fcn.0045b6b0
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 6
mov edi, eax
mov eax, 0
test edi, edi
je 0x4805bb
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x714]
push ecx
mov ecx, edi
call fcn.0047e480
mov dword [ebp - 4], 0xffffffff
push 1
mov ecx, dword [esi + 0x48]
push ecx
mov edx, dword [esi + 0x34]
push pe_nt_image_headers32
mov ecx, dword [esi + 0x1c]
push 0
push edx
push ecx
mov ecx, eax
call fcn.0047e590
push eax
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004203b0
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x480615
push str.Terrain_Shadow_not_created._n
lea eax, [ebp - 0xb8]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.particle.cmp
lea eax, [ebp - 0x2c0]
push str.maps
push 0x4df954
push eax
call fcn.004bd200
add esp, 0x10
lea eax, [ebp - 0x1bc]
lea ecx, [ebp - 0x2c0]
nop
push eax
push ecx
mov ecx, dword [0x4e2fdc]
add ecx, 0x624
call fcn.00429340
lea ecx, [ebp - 0x1bc]
push ecx
mov ecx, dword [0x4e3668]
call fcn.0045b900
push str.particle.tex
lea ecx, [ebp - 0x2c0]
push str.maps
push 0x4df954
push ecx
call fcn.004bd200
add esp, 0x10
lea ecx, [ebp - 0x1bc]
lea edx, [ebp - 0x2c0]
nop
push ecx
push edx
mov ecx, dword [0x4e2fdc]
add ecx, 0x624
call fcn.00429340
lea ecx, [ebp - 0x1bc]
push ecx
mov ecx, dword [0x4e3668]
call fcn.0045b900
push 0x21424
call fcn.0045b6b0
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 7
mov edi, eax
test edi, edi
je 0x4806f4
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x718]
push ecx
mov ecx, edi
call fcn.0043a4e0
jmp 0x4806f6
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov dword [esi + 0x70], eax
mov eax, dword [esi]
call dword [eax + 0x58]
test eax, eax
je 0x48011f
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x44]
cmp ecx, 0xfffffefc
je 0x480890
push 0x30
call fcn.0045b6b0
add esp, 4
mov ecx, 0
mov dword [ebp - 4], 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x48074c
push 1
mov ecx, eax
call fcn.0043e5f0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x1c]
mov edi, dword [ecx]
push eax
call dword [edi + 0x1c]
push eax
mov ecx, esi
call fcn.004203b0
push 0x4df470
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx + 0x44]
add eax, 0x104
push eax
call fcn.004bd1c0
add esp, 8
mov edi, eax
test edi, edi
je 0x48011f
push 0x348
call fcn.0045b6b0
add esp, 4
mov ecx, 0
mov dword [ebp - 4], 9
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4807c0
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x720]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00470940
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x34]
mov edx, dword [esi + 0x34]
push eax
push 0
push edx
push edi
mov edi, dword [esi + 0x1c]
push edi
call fcn.00470a40
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 0x480812
push str.Sky_Cube_not_created._n
lea eax, [ebp - 0xb8]
push eax
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x48084a
mov eax, dword [ecx + 0x6c]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ecx + 0x6c]
push 0
push 0
lea edi, [ebp - 0x18]
fld dword [eax + 0x1c]
fsub dword [0x4d65a8]
fstp dword [ebp - 0x14]
mov eax, dword [ecx + 0x6c]
push edi
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x10], edx
mov ecx, dword [ecx + 0x6c]
call fcn.0043fb60
push 0x34
call fcn.0045b6b0
mov dword [ebp - 0x10], eax
add esp, 4
mov edi, eax
mov ecx, 0
mov dword [ebp - 4], 0xa
test edi, edi
je 0x480874
push 1
mov ecx, edi
call fcn.0043e730
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov edx, dword [esi + 0x1c]
push eax
push edx
call fcn.0043e810
push eax
mov ecx, esi
call fcn.004203b0
push 0x18cc
call fcn.0045b6b0
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 0xb
mov edi, eax
test edi, edi
je 0x4808df
push 0
mov ecx, edi
call fcn.00455190
jmp 0x4808e1
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 0x48011f
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x48092c
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x48]
mov eax, dword [eax + 0x44]
mov edi, dword [edx + 0x38]
add eax, 0x30c
push eax
push edi
mov eax, dword [esi + 0x1c]
mov edi, dword [ecx]
push eax
call dword [edi + 0x50]
mov dword [esi + 0x70], eax
test eax, eax
je 0x48092c
push eax
mov ecx, esi
call fcn.004203b0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x54]
push ebx
mov eax, dword [esi + 0x58]
push eax
mov ecx, dword [ebp - 0x28]
push esi
mov edx, dword [esi + 0x30]
push ecx
mov eax, dword [esi + 0x40]
push edx
mov ecx, dword [esi + 0x44]
push eax
mov edx, dword [esi + 0x48]
push ecx
mov eax, dword [esi + 0x74]
push edx
mov ecx, dword [esi + 0x70]
push eax
mov edx, dword [esi + 0x34]
push ecx
mov eax, dword [esi + 0x1c]
push edx
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00455290
push eax
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.004203b0
test eax, eax
jne 0x48097e
push str.BikeRace_create_failed._n
jmp 0x480103
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x480988
mov eax, dword [esi + 0x48]
push eax
mov ecx, dword [esi + 0x3c]
call fcn.00420430
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4809c9
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + 0x30]
push edx
call fcn.0041f340
push 1
mov eax, dword [ebp - 0x1c]
add eax, 0x24
mov ecx, dword [esi + 0x58]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 8
push eax
call fcn.0041f5a0
push pe_nt_image_headers32
mov ecx, dword [esi + 0x58]
call fcn.0041f370
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 + 0x5c]
call fcn.004235b0
mov ecx, dword [0x4e2fdc]
mov eax, dword [ecx + 0x6f0]
test eax, eax
jne 0x480a4d
push str.InstrumentOverlay
mov ecx, esi
call fcn.00420130
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x720]
test ecx, ecx
jne 0x480a68
push str.DrawableCube
mov ecx, esi
call fcn.00420130
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x718]
test ecx, ecx
jne 0x480a8f
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 0x480aaa
push str.TerrainShadow
mov ecx, esi
call fcn.00420130
mov eax, dword [esi + 0x30]
mov ecx, dword [0x4e2fdc]
mov edx, dword [eax + 0x58]
mov dword [ecx + 0xe2c], edx
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x480ade
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x720]
test ecx, ecx
je 0x480ade
mov dword [eax + 0x131c], 0
jmp 0x480aed
mov eax, dword [0x4e2fdc]
mov dword [eax + 0x131c], 1
mov dword [esi + 0x50], 1
mov eax, 1
jmp 0x480121