Function at 0x4307d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
mov esi, dword [edi + 0x20]
test esi, esi
jne 0x4307f5
push edi
call fcn.00435ec0
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esi + 0x18]
mov ebx, dword [esp + 0x5c]
and eax, 0xff
shl eax, 5
add eax, ecx
test ebx, ebx
mov dword [esp + 0x30], eax
jge 0x430821
mov ecx, dword [esi + 0xc]
xor eax, eax
mov ax, word [ecx + 2]
mov dword [esp + 0x5c], eax
mov ebx, eax
mov ebp, dword [esp + 0x60]
test ebp, ebp
jge 0x430838
mov edx, dword [esi + 0xc]
xor eax, eax
mov ax, word [edx + 8]
mov dword [esp + 0x60], eax
mov ebp, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
test eax, eax
mov dword [esp + 0x18], ebp
jne 0x43085a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004301a0
add esp, 8
mov eax, dword [esp + 0x4c]
test eax, eax
jge 0x430866
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x50]
test eax, eax
jge 0x430872
mov dword [esp + 0x50], ebp
call fcn.00430c70
mov eax, dword [esp + 0x68]
test eax, eax
je 0x430886
call fcn.00430de0
jmp 0x43088b
call fcn.00430e40
mov eax, dword [0x787c80]
test eax, eax
je 0x430904
lea edx, [esp + 0x6c]
lea eax, [esp + 0x10]
push edx
push eax
push 0x787bd0
call fcn.004305f0
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x30]
push ecx
push edx
push 0x787bc8
call fcn.004305f0
lea eax, [esp + 0x54]
lea ecx, [esp + 0x40]
push eax
push ecx
push 0x787b40
call fcn.004305f0
lea edx, [esp + 0x40]
lea eax, [esp + 0x50]
push edx
push eax
push 0x787b44
call fcn.004305f0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add esp, 0x30
jmp 0x43094f
mov cl, byte [edi + 0x18]
mov dl, byte [edi + 0x19]
mov al, byte [edi + 0x1a]
mov byte [esp + 0x3c], cl
mov cl, byte [edi + 0x1b]
mov byte [esp + 0x3d], dl
mov byte [esp + 0x3e], al
lea edx, [esp + 0x6c]
mov byte [esp + 0x3f], cl
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.004305f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
add esp, 0xc
mov edx, eax
mov edi, eax
mov ebp, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ecx
mov ebx, ecx
fild dword [esp + 0x44]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebp
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edi
mov dword [esi + 0x9c], ecx
mov dword [esi + 0x98], edx
fmul dword [0x4ae030]
mov eax, dword [esp + 0x68]
xor edi, edi
cmp eax, edi
fstp dword [esp + 0x3c]
fild dword [esp + 0x48]
fmul dword [0x4ae034]
fstp dword [esp + 0x68]
je 0x4309b9
fild dword [esp + 0x4c]
fmul dword [0x4ae038]
fadd dword [esp + 0x3c]
fild dword [esp + 0x50]
fmul dword [0x4ae03c]
fadd dword [esp + 0x68]
jmp 0x4309e9
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
add edx, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x48]
fild dword [esp + 0x4c]
add edx, ecx
mov dword [esp + 0x4c], edx
fmul dword [0x4ae030]
fild dword [esp + 0x4c]
fmul dword [0x4ae034]
fst dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x68]
fld st(1)
lea ebx, [esi + 0x28]
mov dword [esi + 0x2c], ecx
fstp dword [esi + 0x48]
mov dword [ebx], edx
mov edx, ecx
fst dword [esi + 0x6c]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x4c], edx
fld st(1)
mov dword [esi + 0x68], ecx
mov ebp, 1
fstp dword [esi + 0x88]
fstp dword [esi + 0x8c]
cmp dword [0x787c9c], edi
jne 0x430a38
cmp dword [esi + 0xc8], ebp
je 0x430b99
cmp eax, edi
je 0x430aa0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
add edx, eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x60]
fild dword [esp + 0x5c]
add ecx, edx
mov dword [esi + 0xc8], ebp
mov dword [esp + 0x5c], ecx
fadd dword [0x47f608]
fmul dword [0x47f608]
fild dword [esp + 0x5c]
fadd dword [0x47f608]
fmul dword [0x47f608]
fild dword [esp + 0x54]
fadd dword [0x47f608]
fmul dword [0x47f608]
fild dword [esp + 0x58]
fadd dword [0x47f608]
fmul dword [0x47f608]
jmp 0x430b17
fild dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
fidiv dword [esp + 0x14]
lea ecx, [eax + eax]
lea eax, [edx + edx]
mov dword [esp + 0x5c], ecx
fild dword [esp + 0x60]
mov dword [esp + 0x60], eax
fidiv dword [esp + 0x18]
mov dword [esi + 0xc8], ebp
mov al, byte [0x4c125c]
test al, al
fstp dword [esp + 0x50]
fild dword [esp + 0x5c]
fdivr dword [0x47f354]
fstp dword [esp + 0x5c]
fild dword [esp + 0x60]
fdivr dword [0x47f354]
fstp dword [esp + 0x60]
jne 0x430b03
fsub dword [esp + 0x5c]
fld dword [esp + 0x50]
fsub dword [esp + 0x60]
jmp 0x430b0f
fadd dword [esp + 0x5c]
fld dword [esp + 0x60]
fadd dword [esp + 0x50]
fld dword [esp + 0x5c]
fld dword [esp + 0x60]
fld st(1)
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
fstp dword [esi + 0x40]
mov dword [ebx], ecx
mov ecx, edx
fst dword [esi + 0x44]
fld st(4)
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x3c]
fstp dword [esi + 0x48]
fld st(3)
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x4c]
fstp dword [esi + 0x60]
mov dword [esi + 0x68], edx
mov eax, 0x3f7d70a4
fstp dword [esi + 0x64]
mov edx, ecx
mov dword [esi + 0x30], edi
fstp dword [esi + 0x80]
mov dword [esi + 0x34], eax
mov dword [esi + 0x50], edi
fst dword [esi + 0x84]
fxch st(2)
fstp dword [esi + 0x88]
mov dword [esi + 0x54], eax
mov dword [esi + 0x6c], ecx
fstp dword [esi + 0xa0]
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], eax
fstp dword [esi + 0xa4]
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], eax
jmp 0x430b9b
fstp st(0)
mov esi, dword [esp + 0x30]
cmp dword [esi + 4], edi
jne 0x430bb0
push esi
call fcn.004419f0
add esp, 4
mov dword [esi + 4], eax
cmp dword [0x4c3518], edi
jne 0x430bfc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x430bd8
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push 8
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x10
call dword [ecx + 0x74]
mov eax, dword [0x4c30f0]
mov edx, dword [esi + 4]
push edx
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x8c]
test eax, eax
jge 0x430c0c
push str.Didnt_set_texture
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x430c0c
push edi
push esi
call fcn.0043d6b0
push eax
call fcn.0043d750
add esp, 0xc
cmp dword [0x4c3518], edi
jne 0x430c3b
mov eax, dword [0x4c30f0]
push edi
push 4
push ebx
mov ecx, dword [eax]
push 0x1c4
push 5
push eax
call dword [ecx + 0x64]
test eax, eax
jge 0x430c4f
push str.Didnt_draw_primitive
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x430c4f
push ebp
push edi
push 4
push ebx
push 0x1c4
push 5
call fcn.0043cf90
add esp, 0x18
cmp dword [0x4c3518], edi
je 0x430c62
push edi
push 4
call fcn.0043ae20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret