Function at 0x41d0f0
Capabilities:
Print debug messages
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov eax, dword [0x5c140c]
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x41d147
mov dword [0x5c140c], 1
mov esi, 0x47e0a8
mov edi, 0x12
call fcn.004277c7
cdq
mov ecx, 0x7d0
add esi, 4
idiv ecx
dec edi
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fmul dword [0x4624d4]
fsub dword [0x4623f8]
fstp dword [esi - 4]
jne 0x41d115
cmp esi, 0x47ee28
jl 0x41d110
mov eax, dword [0x48eab4]
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov edx, dword [eax]
push ebx
push ebx
push eax
call dword [edx + 0x2c]
test eax, eax
jge 0x41d170
push str.Error_Locking_vertex_buffer
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 5
call fcn.00426f0a
mov edx, dword [esp + 0x2c]
push ebp
mov dword [esp + 0x28], ebx
mov eax, 0x47e0a8
mov edi, 0xbf800000
or esi, 0xffffffff
fild dword [esp + 0x28]
mov ebp, 0x12
mov dword [esp + 0x24], ebx
lea ecx, [edx + 0x34]
mov dword [esp + 0x14], ebp
fld st(0)
fmul dword [0x4624d0]
mov dword [esp + 0x2c], eax
fsub dword [0x462248]
fst dword [esp + 0x18]
fadd dword [0x4624d0]
fstp dword [esp + 0x20]
fmul dword [0x4624cc]
fld st(0)
fadd dword [0x4624cc]
fild dword [esp + 0x24]
fmul dword [0x4624c8]
fsub dword [0x4624c4]
fld st(0)
fadd dword [0x4624c8]
fstp dword [esp + 0x1c]
fild dword [esp + 0x14]
fmul dword [0x4624c0]
fadd qword [0x4624b8]
fst dword [esp + 0x10]
fsub dword [0x4624c0]
fstp dword [esp + 0x14]
fld dword [eax]
fcom dword [0x4624b4]
fnstsw ax
test ah, 1
je 0x41d21b
fstp st(0)
fld dword [0x4624b4]
jmp 0x41d230
fcom dword [0x4624b0]
fnstsw ax
test ah, 0x41
jne 0x41d230
fstp st(0)
fld dword [0x4624b0]
fcos
cmp byte [esp + 0x3c], bl
je 0x41d246
fmul qword [0x4624a8]
fadd qword [0x4624a0]
jmp 0x41d252
fmul dword [0x4622c8]
fsubr dword [0x462498]
mov eax, dword [esp + 0x18]
fld st(1)
mov dword [edx], eax
mov eax, dword [esp + 0x10]
fstp dword [ecx - 0x30]
fst dword [ecx - 0x2c]
fld st(3)
mov dword [ecx - 0x14], eax
mov dword [ecx - 0xc], eax
fstp dword [ecx - 0x18]
mov eax, dword [esp + 0x18]
fld st(3)
fstp dword [ecx - 0x10]
mov dword [ecx - 0x28], ebx
mov dword [ecx - 0x24], ebx
mov dword [ecx - 0x20], edi
mov dword [ecx - 0x1c], esi
fst dword [ecx]
mov dword [ecx - 8], eax
mov eax, dword [esp + 0x1c]
fld st(3)
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 0x14]
fld st(3)
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x20], eax
fstp dword [ecx + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x24], eax
fst dword [ecx + 0x2c]
mov eax, dword [esp + 0x1c]
fld st(2)
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 0x40]
fld st(2)
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x4c], eax
fstp dword [ecx + 0x48]
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x30], ebx
mov dword [ecx + 0x34], ebx
mov dword [ecx + 0x38], edi
mov dword [ecx + 0x3c], esi
mov dword [ecx + 0x50], eax
fst dword [ecx + 0x58]
mov eax, dword [esp + 0x1c]
fld st(2)
mov dword [ecx + 0x54], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 0x6c]
fld st(2)
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x78], eax
fstp dword [ecx + 0x74]
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x5c], ebx
fld st(1)
mov dword [ecx + 0x60], ebx
mov dword [ecx + 0x64], edi
mov dword [ecx + 0x68], esi
mov dword [ecx + 0x7c], eax
fstp dword [ecx + 0x80]
mov eax, dword [esp + 0x10]
fst dword [ecx + 0x84]
fld st(2)
mov dword [ecx + 0x9c], eax
mov dword [ecx + 0xa4], eax
fstp dword [ecx + 0x98]
mov eax, dword [esp + 0x18]
fld st(2)
fstp dword [ecx + 0xa0]
mov dword [ecx + 0x88], ebx
mov dword [ecx + 0x8c], ebx
mov dword [ecx + 0x90], edi
mov dword [ecx + 0x94], esi
fxch st(1)
fstp dword [ecx + 0xac]
mov dword [ecx + 0xa8], eax
mov eax, dword [esp + 0x10]
fstp dword [ecx + 0xb0]
fld st(1)
mov dword [ecx + 0xc8], eax
mov dword [ecx + 0xd0], eax
fstp dword [ecx + 0xc4]
mov eax, dword [esp + 0x24]
add edx, 0x108
fld st(1)
fstp dword [ecx + 0xcc]
mov dword [ecx + 0xb4], ebx
mov dword [ecx + 0xb8], ebx
mov dword [ecx + 0xbc], edi
mov dword [ecx + 0xc0], esi
add ecx, 0x108
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
add eax, 4
dec ebp
cmp ebp, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebp
jg 0x41d1c8
mov ebp, dword [esp + 0x28]
fstp st(0)
inc ebp
cmp eax, 0x47ee28
fstp st(0)
mov dword [esp + 0x28], ebp
jl 0x41d186
mov dl, byte [esp + 0x3c]
xor esi, esi
pop ebp
xor eax, eax
cmp dl, bl
lea ecx, [esi + eax]
je 0x41d417
fld dword [esp + 0x34]
fmul dword [0x4623f8]
fadd dword [ecx*4 + 0x47e0a8]
jmp 0x41d422
fld dword [ecx*4 + 0x47e0a8]
fsub dword [esp + 0x34]
fstp dword [ecx*4 + 0x47e0a8]
inc eax
cmp eax, 0x12
jl 0x41d3fd
add esi, 0x12
cmp esi, 0x360
jl 0x41d3fb
mov eax, dword [0x48eab4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
pop edi
pop esi
pop ebx
add esp, 0x24
ret