Function at 0x492240
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x154
mov dword [esp], ecx
push ebx
mov dword [esp + 0x24], 0
push esi
push edi
push ebp
push 0x22b
call fcn.004936e0
test eax, eax
je 0x49226e
mov dword [esp + 0x30], 0x22b
jmp 0x492288
mov ecx, dword [esp + 0x10]
push 0x235
call fcn.004936e0
test eax, eax
je 0x492288
mov dword [esp + 0x30], 0x235
mov eax, dword [0x4e2fdc]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x43c]
mov eax, dword [esp + 0x168]
test ecx, ecx
je 0x4922bb
mov ecx, dword [eax + 0x110]
test ecx, ecx
je 0x4922c5
mov ecx, dword [eax + 0x19c]
test cl, 0x3c
jne 0x4922d0
mov ecx, dword [eax + 0x110]
test ecx, ecx
jne 0x4922d8
mov ecx, dword [eax + 0x268]
test cl, 0x3c
je 0x4922d8
mov dword [esp + 0x1c], 1
lea edi, [esp + 0x50]
xor eax, eax
mov ecx, 0x1b
rep stosd dword es:[edi], eax
mov dword [esp + 0x50], 0x6c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x492308
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x30]
push eax
push ecx
jmp 0x492325
mov ecx, dword [esp + 0x10]
push 8
call fcn.004936e0
test eax, eax
je 0x4926d1
lea eax, [esp + 0x98]
push eax
push 8
mov edi, 0x100
call fcn.00461300
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, 1
sbb eax, eax
mov edx, dword [esp + 0x14]
shl edx, 3
and eax, 8
add eax, 8
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 9
mov dword [esp + 0x4c], eax
xor ebp, ebp
mov eax, dword [esp + 0x170]
test eax, eax
je 0x4924c1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
lea ebx, [esp + 0x34]
push edx
mov eax, dword [ecx]
mov dword [esp + 0x38], 0x20001000
mov ecx, dword [eax]
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov esi, dword [ecx]
call dword [esi + 0x5c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], 0x1007
mov dword [esp + 0xb8], 0x20005000
test ebp, ebp
je 0x4923d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4923d0
mov dword [esp + 0x54], 0x21007
mov dword [esp + 0xb8], 0x20405008
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x28]
push edx
mov eax, dword [ecx]
mov ecx, dword [eax]
lea eax, [esp + 0x58]
mov ebx, dword [ecx]
push eax
push ecx
call dword [ebx + 0x18]
test eax, eax
je 0x492403
push 0xd2
push str.C:_aardvark_vc_trkviewdd_d3d.h
push eax
call fcn.0048f750
add esp, 0xc
jmp 0x492439
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x24]
push eax
push 0x4d6890
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x49242f
push 0xd3
push str.C:_aardvark_vc_trkviewdd_d3d.h
push eax
call fcn.0048f750
add esp, 0xc
jmp 0x492439
mov eax, dword [esp + 0x24]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
mov eax, dword [ecx]
lea ebx, [esp + 0x34]
push edx
mov ecx, dword [eax]
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov esi, dword [ecx]
call dword [esi + 0x5c]
mov eax, dword [esp + 0x38]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
add ebx, ebp
mov eax, dword [esp + 0x48]
sub edx, eax
mov ecx, dword [esp + 0x10]
test ebp, ebp
mov esi, dword [ecx]
mov dword [esi + ebx*4 + 0x364], edx
je 0x492493
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x492493
mov dword [esp + 0x20], 0x3faaaaab
jmp 0x49249b
mov dword [esp + 0x20], 0x3f800000
mov eax, dword [esp + 0x14]
cmp eax, 1
mov eax, 2
adc eax, 0xffffffff
imul eax, edi
imul eax, edi
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [esp + 0x20]
jmp 0x492606
xor esi, esi
lea ebx, [esp + 0xbc]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], 0x1007
mov dword [esp + 0xb8], 0x5000
test ebp, ebp
je 0x49250c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49250c
mov dword [esp + 0x54], 0x21007
mov dword [esp + 0xb8], 0x405008
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x10]
push 0
push ebx
nop
mov eax, dword [ecx]
lea ecx, [esp + 0x58]
push ecx
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
jne 0x492538
add ebx, 4
inc esi
lea eax, [esp + 0xe4]
cmp ebx, eax
jb 0x4924ca
jmp 0x49254b
push 0x891
push str.C:_aardvark_vc_trkviewDd_d3d.cpp
push eax
call fcn.0048f750
add esp, 0xc
mov dword [esp + 0x3c], 0
cmp esi, 0xa
jne 0x492566
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x10]
push eax
call fcn.00492090
test esi, esi
jle 0x49258d
lea ebx, [esp + 0xbc]
mov dword [esp + 0x18], esi
mov eax, dword [ebx]
add ebx, 4
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebx - 4], 0
dec dword [esp + 0x18]
jne 0x492575
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
mov ebx, dword [esp + 0x2c]
add ebx, ebp
test esi, esi
je 0x4925b6
cdq
mov ecx, dword [esp + 0x10]
idiv esi
mov edx, dword [ecx]
mov dword [edx + ebx*4 + 0x364], eax
jmp 0x4925c7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov dword [eax + ebx*4 + 0x364], 0
test ebp, ebp
je 0x4925dd
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4925dd
mov dword [esp + 0x20], 0x3faaaaab
jmp 0x4925e5
mov dword [esp + 0x20], 0x3f800000
mov eax, dword [esp + 0x14]
cmp eax, 1
mov eax, 2
adc eax, 0xffffffff
imul eax, edi
imul eax, edi
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [esp + 0x20]
call fcn.004bd1d8
mov ecx, dword [esp + 0x14]
cmp ecx, 1
mov ecx, 0
adc ecx, 0xffffffff
and ecx, 0x400
test ebp, ebp
lea esi, [ecx + eax]
je 0x492634
mov eax, dword [esp + 0x1c]
mov edx, str.mipmap
test eax, eax
jne 0x492639
mov edx, str.texture
mov ecx, dword [esp + 0x10]
push esi
mov eax, dword [ecx]
mov ecx, dword [eax + ebx*4 + 0x364]
push ecx
push edx
mov edx, dword [esp + 0x58]
push edi
lea eax, [esp + 0xf4]
push edi
push edx
push str._2d_bit__3dx_3d__s_requires__6d_bytes__expected__6d__n
push eax
call fcn.004bd200
lea ecx, [esp + 0x104]
add esp, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
lea eax, [edx + ebx*4 + 0x364]
mov ebx, dword [edx + ebx*4 + 0x364]
cmp ebx, esi
jge 0x49268d
mov dword [eax], esi
inc ebp
cmp ebp, 2
jl 0x49235a
mov eax, edi
cdq
sub eax, edx
mov ecx, dword [esp + 0x2c]
sar eax, 1
add ecx, 2
mov edi, eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x28]
dec eax
cmp edi, 0x20
mov dword [esp + 0x28], eax
jge 0x492358
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 2
jl 0x4922f1
jmp 0x4926ed
mov edx, 0x20
xor esi, esi
mov ecx, dword [esp + 0x10]
add edx, 4
cmp edx, 0x40
mov eax, dword [ecx]
mov dword [eax + edx + 0x360], esi
jl 0x4926d8
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x154
ret 0xc