Function at 0x478180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
push edi
test byte [esi], 0x20
jne 0x479141
mov ax, word [esi + 6]
xor ebp, ebp
cmp ax, bp
je 0x479141
mov edx, dword [0x660fd8]
and eax, 0xffff
fld dword [0x56e734]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x130]
mov cx, word [esi + 2]
inc edx
mov dword [esp + 0x18], ecx
mov dword [0x660fd8], edx
fmul dword [eax + 0x3c]
fld dword [0x56e724]
fmul dword [eax + 0x38]
faddp st(1)
fld dword [0x56e704]
fmul dword [eax + 0x30]
faddp st(1)
fld dword [0x56e714]
fmul dword [eax + 0x34]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [0x56e730]
fmul dword [eax + 0x3c]
fld dword [0x56e720]
fmul dword [eax + 0x38]
faddp st(1)
fld dword [0x56e700]
fmul dword [eax + 0x30]
faddp st(1)
fld dword [0x56e710]
fmul dword [eax + 0x34]
faddp st(1)
fstp dword [esp + 0x78]
fld dword [0x56e72c]
fmul dword [eax + 0x3c]
fld dword [0x56e71c]
fmul dword [eax + 0x38]
faddp st(1)
fld dword [0x56e6fc]
fmul dword [eax + 0x30]
faddp st(1)
fld dword [0x56e70c]
fmul dword [eax + 0x34]
faddp st(1)
fstp dword [esp + 0x50]
fld dword [0x56e728]
fmul dword [eax + 0x3c]
fld dword [0x56e718]
fmul dword [eax + 0x38]
faddp st(1)
fld dword [0x56e6f8]
fmul dword [eax + 0x30]
faddp st(1)
fld dword [0x56e708]
fmul dword [eax + 0x34]
faddp st(1)
fstp dword [esp + 0x48]
fld dword [0x56e734]
fmul dword [eax + 0x2c]
fld dword [0x56e724]
fmul dword [eax + 0x28]
faddp st(1)
fld dword [0x56e704]
fmul dword [eax + 0x20]
faddp st(1)
fld dword [0x56e714]
fmul dword [eax + 0x24]
faddp st(1)
fstp dword [esp + 0x20]
fld dword [0x56e730]
fmul dword [eax + 0x2c]
fld dword [0x56e720]
fmul dword [eax + 0x28]
faddp st(1)
fld dword [0x56e700]
fmul dword [eax + 0x20]
faddp st(1)
fld dword [0x56e710]
fmul dword [eax + 0x24]
faddp st(1)
fstp dword [esp + 0x24]
fld dword [0x56e72c]
fmul dword [eax + 0x2c]
fld dword [0x56e71c]
fmul dword [eax + 0x28]
faddp st(1)
fld dword [0x56e6fc]
fmul dword [eax + 0x20]
faddp st(1)
fld dword [0x56e70c]
fmul dword [eax + 0x24]
faddp st(1)
fstp dword [esp + 0x28]
fld dword [0x56e728]
fmul dword [eax + 0x2c]
fld dword [0x56e718]
fmul dword [eax + 0x28]
faddp st(1)
fld dword [0x56e6f8]
fmul dword [eax + 0x20]
faddp st(1)
fld dword [0x56e708]
fmul dword [eax + 0x24]
faddp st(1)
fstp dword [esp + 0x68]
fld dword [0x56e734]
fmul dword [eax + 0x1c]
fld dword [0x56e724]
fmul dword [eax + 0x18]
faddp st(1)
fld dword [0x56e704]
fmul dword [eax + 0x10]
faddp st(1)
fld dword [0x56e714]
fmul dword [eax + 0x14]
faddp st(1)
fstp dword [esp + 0x34]
fld dword [0x56e730]
fmul dword [eax + 0x1c]
fld dword [0x56e720]
fmul dword [eax + 0x18]
faddp st(1)
fld dword [0x56e700]
fmul dword [eax + 0x10]
faddp st(1)
fld dword [0x56e710]
fmul dword [eax + 0x14]
faddp st(1)
fstp dword [esp + 0x3c]
fld dword [0x56e72c]
fmul dword [eax + 0x1c]
fld dword [0x56e71c]
fmul dword [eax + 0x18]
faddp st(1)
fld dword [0x56e6fc]
fmul dword [eax + 0x10]
faddp st(1)
fld dword [0x56e70c]
fmul dword [eax + 0x14]
faddp st(1)
fstp dword [esp + 0x2c]
fld dword [0x56e728]
fmul dword [eax + 0x1c]
fld dword [0x56e718]
fmul dword [eax + 0x18]
faddp st(1)
fld dword [0x56e6f8]
fmul dword [eax + 0x10]
faddp st(1)
fld dword [0x56e708]
fmul dword [eax + 0x14]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [0x56e734]
fmul dword [eax + 0xc]
fld dword [0x56e724]
fmul dword [eax + 8]
faddp st(1)
fld dword [0x56e704]
fmul dword [eax]
faddp st(1)
fld dword [0x56e714]
fmul dword [eax + 4]
faddp st(1)
fstp dword [esp + 0x40]
fld dword [0x56e730]
fmul dword [eax + 0xc]
fld dword [0x56e720]
fmul dword [eax + 8]
faddp st(1)
fld dword [0x56e700]
fmul dword [eax]
faddp st(1)
fld dword [0x56e710]
fmul dword [eax + 4]
faddp st(1)
fstp dword [esp + 0x44]
fld dword [0x56e72c]
fmul dword [eax + 0xc]
fld dword [0x56e71c]
fmul dword [eax + 8]
mov ecx, dword [esp + 0x44]
faddp st(1)
fld dword [0x56e6fc]
fmul dword [eax]
faddp st(1)
fld dword [0x56e70c]
fmul dword [eax + 4]
faddp st(1)
fstp dword [esp + 0x38]
fld dword [0x56e728]
fmul dword [eax + 0xc]
fld dword [0x56e718]
fmul dword [eax + 8]
mov edx, dword [esp + 0x38]
faddp st(1)
fld dword [0x56e6f8]
fmul dword [eax]
faddp st(1)
fld dword [0x56e708]
fmul dword [eax + 4]
mov eax, dword [esp + 0x40]
push eax
push ecx
faddp st(1)
push edx
lea ecx, [esp + 0xb4]
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
push eax
call fcn.00402620
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
lea ecx, [esp + 0xc8]
call fcn.00402620
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
lea ecx, [esp + 0xd8]
call fcn.00402620
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
lea ecx, [esp + 0xe8]
call fcn.00402620
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0xec]
call fcn.00478140
lea eax, [esp + 0xa8]
lea ecx, [esp + 0xf0]
mov edx, 4
mov edi, dword [ecx - 8]
add ecx, 0x10
mov dword [eax], edi
mov edi, dword [ecx - 0x14]
mov dword [eax + 4], edi
mov edi, dword [ecx - 0x10]
mov dword [eax + 8], edi
mov edi, dword [ecx - 0xc]
mov dword [eax + 0xc], edi
add eax, 0x10
dec edx
jne 0x478553
mov eax, 4
lea edx, [esp + 0xa8]
mov edi, 0x56e668
sub edx, eax
mov ecx, 0x56e674
sub edi, eax
mov ebx, dword [edx + eax]
add ecx, 0x10
mov dword [edi + eax], ebx
mov ebx, dword [esp + eax + 0xa8]
mov dword [eax + 0x56e668], ebx
mov ebx, dword [esp + eax + 0xac]
mov dword [ecx - 0x14], ebx
mov ebx, dword [esp + eax + 0xb0]
mov dword [ecx - 0x10], ebx
add eax, 0x10
cmp eax, 0x44
jl 0x47858d
mov eax, dword [esp + 0x138]
mov dword [esp + 0x38], 0x3f800000
cmp eax, ebp
jne 0x4785e4
cmp dword [0x6b78f8], ebp
jne 0x4785e4
mov edx, dword [0x54ffe0]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x18]
xor eax, eax
xor ecx, ecx
mov dword [0x55002c], 0x62e510
mov ax, word [esi + 4]
mov cx, word [esi + 2]
add eax, ecx
lea ebx, [esi + 0x1c]
lea edi, [esi + eax*8 + 0x1c]
lea eax, [edx - 1]
cmp eax, ebp
jl 0x478729
inc eax
mov esi, 0x62e518
mov dword [esp + 0x30], eax
movsx eax, word [ebx + 4]
movsx ecx, word [ebx + 2]
mov dword [esp + 0x18], eax
mov dword [esp + 0x8c], 0x3f800000
fild dword [esp + 0x18]
movsx edx, word [ebx]
fstp dword [esp + 0x50]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x88], edx
fstp dword [esp + 0x48]
fild dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x98]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
push eax
push ecx
call fcn.00402700
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x64], ecx
fld dword [esp + 0x6c]
fstp qword [esp]
call fcn.005294c4
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fcomp dword [0x53b368]
add esp, 8
fnstsw ax
test ah, 0x41
je 0x4786ce
mov dword [esp + 0x14], 0xd368d4a5
jmp 0x4786dc
fld dword [0x53b27c]
fdiv dword [esp + 0x64]
fstp dword [esp + 0x14]
fld dword [esp + 0x5c]
fmul dword [esp + 0x14]
add esi, 0x20
add ebx, 8
fstp dword [esp + 0x48]
fld dword [esp + 0x58]
fmul dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov dword [esi - 0x20], ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov dword [esi - 0x24], eax
mov eax, dword [esp + 0x30]
dec eax
fstp dword [esi - 0x1c]
mov dword [esp + 0x30], eax
jne 0x47861c
mov esi, dword [esp + 0x12c]
mov al, byte [0x660fe0]
test al, al
je 0x478753
mov dx, word [esi + 2]
cmp dx, word [esi + 4]
jbe 0x478743
mov byte [0x660fe0], 0
cmp dword [esp + 0x134], ebp
jne 0x478753
mov byte [0x660fe0], 0
mov eax, dword [esp + 0x10]
cmp eax, ebp
jle 0x479141
mov ecx, dword [0x660f90]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], eax
mov edx, dword [edi + 8]
mov esi, dword [edi + 4]
xor eax, eax
mov dword [esp + 0x34], edx
mov ax, word [edi]
mov dword [esp + 0x18], esi
test al, 0x10
je 0x4787bf
cmp dword [esp + 0x138], ebp
jne 0x4787bf
mov cl, byte [esp + 0x1a]
test ah, 8
mov byte [esp + 0x1b], cl
je 0x4787a2
mov dl, byte [esp + 0x36]
mov byte [esp + 0x37], dl
mov ecx, dword [edi + 0x18]
mov esi, dword [esp + 0x18]
mov edx, ecx
and ecx, 0xffff
shl edx, 0x10
add edx, ecx
mov dword [edi + 0x18], edx
mov ecx, dword [0x660f90]
mov ebx, ecx
mov dword [esp + 0x3c], 0xff000000
shr ebx, 0x10
and ebx, eax
mov eax, ecx
and eax, 0xffff
mov dword [esp + 0x30], ebp
or ebx, eax
test bl, 0xc0
je 0x47912b
test bl, 0x40
je 0x47880f
mov eax, ebx
mov edx, 0
and eax, 0x80
setne dl
inc edx
neg eax
sbb eax, eax
mov dword [esp + 0x30], edx
and eax, 0x81000000
add eax, 0xff000000
mov dword [esp + 0x3c], eax
test cl, 0x40
je 0x478824
mov dword [esp + 0x30], 2
mov dword [esp + 0x3c], 0x80000000
mov eax, dword [edi + 0x10]
push str.Texture_pointer_is_zero.
cmp eax, ebp
mov dword [esp + 0x30], eax
setne al
push eax
call fcn.004015b0
add esp, 8
test bl, 1
jne 0x47892f
mov dword [esp + 0x38], 1
mov eax, dword [esp + 0x1b]
mov ecx, dword [0x55002c]
and eax, 0xff
and esi, 0xff
shl eax, 5
mov dword [eax + ecx + 0x14], ebp
mov edx, dword [0x55002c]
mov dword [eax + edx + 0x10], ebp
mov eax, dword [esp + 0x1a]
mov ecx, dword [0x55002c]
and eax, 0xff
shl eax, 5
mov dword [eax + ecx + 0x14], ebp
mov edx, dword [0x55002c]
mov dword [eax + edx + 0x10], ebp
mov eax, dword [esp + 0x19]
mov ecx, dword [0x55002c]
and eax, 0xff
shl eax, 5
shl esi, 5
mov dword [eax + ecx + 0x14], ebp
mov edx, dword [0x55002c]
mov dword [eax + edx + 0x10], ebp
mov eax, dword [0x55002c]
mov dword [esi + eax + 0x14], ebp
mov ecx, dword [0x55002c]
mov dword [esi + ecx + 0x10], ebp
test bh, 8
je 0x478f0d
xor esi, esi
mov eax, dword [0x64f5d0]
mov ebx, dword [esp + 0x3c]
xor edx, edx
xor ecx, ecx
mov dl, byte [esp + esi + 0x34]
mov cl, byte [esp + esi + 0x18]
shl ecx, 5
mov eax, dword [eax + edx*4]
xor edx, edx
or eax, ebx
mov ebx, eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x12]
and ebx, 0xff
shl ebx, 0x10
or edx, ebx
and eax, 0xff00ff00
or edx, eax
mov eax, dword [0x55002c]
inc esi
mov dword [ecx + eax + 0x18], edx
mov edx, dword [0x55002c]
cmp esi, 4
mov dword [ecx + edx + 0x1c], ebp
jl 0x4788d6
jmp 0x478f5a
mov eax, dword [0x660fe4]
cmp eax, ebp
je 0x47893e
mov dword [esp + 0x38], eax
jmp 0x47894b
mov edx, dword [esp + 0x2c]
mov ax, word [edx + 2]
mov word [esp + 0x38], ax
mov ecx, ebx
push str.Non_ARB_Texture
shr ecx, 1
and cl, 1
push ecx
call fcn.004015b0
mov eax, dword [esp + 0x34]
xor edx, edx
add esp, 8
mov dl, byte [eax]
mov dword [esp + 0x10], edx
xor edx, edx
fild dword [esp + 0x10]
mov dl, byte [eax + 1]
mov dword [esp + 0x10], edx
xor edx, edx
fstp dword [esp + 0x2c]
fild dword [esp + 0x10]
mov dl, byte [eax + 0xa]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
fstp dword [esp + 0x20]
fild dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
xor ecx, ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x2c]
mov cl, byte [eax + 0xb]
mov dword [esp + 0x10], ecx
fstp dword [esp + 0x14]
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x20]
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fcomp dword [0x53b280]
fnstsw ax
test ah, 0x40
jne 0x4789f8
fld dword [esp + 0x2c]
fcomp dword [0x53b280]
fnstsw ax
test ah, 0x40
jne 0x4789f8
mov eax, 1
jmp 0x4789fa
xor eax, eax
push str.Texture_range_is_zero.
push eax
call fcn.004015b0
fld dword [esp + 0x1c]
fcomp dword [0x53b280]
add esp, 8
fnstsw ax
test ah, 0x40
jne 0x47884f
fld dword [esp + 0x2c]
fcomp dword [0x53b280]
fnstsw ax
test ah, 0x40
jne 0x47884f
mov eax, dword [esp + 0x138]
fld dword [0x53b27c]
fdiv dword [esp + 0x14]
cmp eax, ebp
jne 0x478c27
fstp dword [esp + 0x14]
fld dword [0x53b27c]
fdiv dword [esp + 0x2c]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x4c], ebp
and edx, 0xff
mov eax, dword [0x55002c]
mov dword [esp + 0x48], edx
and esi, 0xff
shl esi, 5
mov dword [esp + 0x54], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x94], ebp
fstp dword [esp + 0x20]
fild qword [esp + 0x48]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x14]
fstp dword [esi + eax + 0x10]
mov ecx, dword [edi + 0x14]
mov edx, dword [0x55002c]
shr ecx, 8
and ecx, 0xff
mov eax, dword [esp + 0x19]
mov dword [esp + 0x50], ecx
and eax, 0xff
fild qword [esp + 0x50]
shl eax, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x20]
fstp dword [esi + edx + 0x14]
mov ecx, dword [edi + 0x14]
mov edx, dword [0x55002c]
shr ecx, 0x10
and ecx, 0xff
mov dword [esp + 0x78], ecx
fild qword [esp + 0x78]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x14]
fstp dword [eax + edx + 0x10]
mov ecx, dword [edi + 0x14]
mov edx, dword [0x55002c]
shr ecx, 0x18
mov dword [esp + 0x70], ecx
fild qword [esp + 0x70]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x14]
mov ecx, dword [edi + 0x18]
mov eax, dword [esp + 0x1a]
and ecx, 0xff
mov edx, dword [0x55002c]
mov dword [esp + 0x68], ecx
and eax, 0xff
fild qword [esp + 0x68]
shl eax, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x14]
fstp dword [eax + edx + 0x10]
mov ecx, dword [edi + 0x18]
shr ecx, 8
and ecx, 0xff
mov dword [esp + 0x90], ecx
fild qword [esp + 0x90]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
mov edx, dword [0x55002c]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x84], ebp
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x14]
mov ecx, dword [edi + 0x18]
mov eax, dword [esp + 0x1b]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [0x55002c]
mov dword [esp + 0x98], ecx
and eax, 0xff
fild qword [esp + 0x98]
shl eax, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x14]
fstp dword [eax + edx + 0x10]
mov ecx, dword [edi + 0x18]
mov edx, dword [0x55002c]
shr ecx, 0x18
mov dword [esp + 0x80], ecx
fild qword [esp + 0x80]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x14]
jmp 0x4788cb
fstp dword [esp + 0x20]
fld dword [0x53b27c]
fdiv dword [esp + 0x2c]
mov ecx, dword [eax + 0xc]
test ch, 4
fstp dword [esp + 0x14]
je 0x478d9c
xor eax, eax
mov ecx, dword [0x55002c]
mov al, byte [edi + 0x14]
and esi, 0xff
mov dword [esp + 0x10], eax
xor edx, edx
fild dword [esp + 0x10]
shl esi, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [esi + ecx + 0x10]
mov dl, byte [edi + 0x15]
mov eax, dword [0x55002c]
mov dword [esp + 0x10], edx
xor ecx, ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x14]
fstp dword [esi + eax + 0x14]
mov cl, byte [edi + 0x16]
mov eax, dword [esp + 0x19]
mov dword [esp + 0x10], ecx
mov edx, dword [0x55002c]
fild dword [esp + 0x10]
and eax, 0xff
xor ecx, ecx
shl eax, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x10]
mov cl, byte [edi + 0x17]
mov edx, dword [0x55002c]
mov dword [esp + 0x10], ecx
xor ecx, ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x14]
fstp dword [eax + edx + 0x14]
mov cl, byte [edi + 0x18]
mov eax, dword [esp + 0x1a]
mov dword [esp + 0x10], ecx
mov edx, dword [0x55002c]
fild dword [esp + 0x10]
and eax, 0xff
xor ecx, ecx
shl eax, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x10]
mov cl, byte [edi + 0x19]
mov edx, dword [0x55002c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x14]
fstp dword [eax + edx + 0x14]
mov eax, dword [esp + 0x1b]
and eax, 0xff
shl eax, 5
xor ecx, ecx
mov cl, byte [edi + 0x1a]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
mov edx, dword [0x55002c]
xor ecx, ecx
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x10]
mov cl, byte [edi + 0x1b]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
jmp 0x478ef6
xor eax, eax
mov ecx, dword [0x55002c]
mov ax, word [edi + 0x14]
and esi, 0xff
mov dword [esp + 0x10], eax
xor edx, edx
fild dword [esp + 0x10]
shl esi, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [esi + ecx + 0x10]
mov dx, word [edi + 0x1c]
mov eax, dword [0x55002c]
mov dword [esp + 0x10], edx
xor ecx, ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x14]
fstp dword [esi + eax + 0x14]
mov cx, word [edi + 0x16]
mov eax, dword [esp + 0x19]
mov dword [esp + 0x10], ecx
mov edx, dword [0x55002c]
fild dword [esp + 0x10]
and eax, 0xff
xor ecx, ecx
shl eax, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x10]
mov cx, word [edi + 0x1e]
mov edx, dword [0x55002c]
mov dword [esp + 0x10], ecx
xor ecx, ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x14]
fstp dword [eax + edx + 0x14]
mov cx, word [edi + 0x18]
mov eax, dword [esp + 0x1a]
mov dword [esp + 0x10], ecx
mov edx, dword [0x55002c]
fild dword [esp + 0x10]
and eax, 0xff
xor ecx, ecx
shl eax, 5
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x10]
mov cx, word [edi + 0x20]
mov edx, dword [0x55002c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
fmul dword [esp + 0x14]
fstp dword [eax + edx + 0x14]
mov eax, dword [esp + 0x1b]
and eax, 0xff
shl eax, 5
xor ecx, ecx
mov cx, word [edi + 0x1a]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
mov edx, dword [0x55002c]
xor ecx, ecx
fmul dword [esp + 0x20]
fstp dword [eax + edx + 0x10]
mov cx, word [edi + 0x22]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub dword [esp + 0x24]
mov edx, dword [0x55002c]
fmul dword [esp + 0x14]
fstp dword [eax + edx + 0x14]
jmp 0x4788cb
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
or eax, ecx
xor edx, edx
mov ecx, eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x12]
and ecx, 0xff
shl ecx, 0x10
or edx, ecx
and eax, 0xff00ff00
or edx, eax
xor ecx, ecx
mov esi, dword [0x55002c]
xor eax, eax
mov al, byte [esp + ecx + 0x18]
shl eax, 5
inc ecx
mov dword [eax + esi + 0x18], edx
mov esi, dword [0x55002c]
cmp ecx, 4
mov dword [eax + esi + 0x1c], ebp
jl 0x478f37
cmp dword [0x660f94], ebp
je 0x478fdb
xor edx, edx
mov eax, dword [0x55002c]
xor ecx, ecx
mov cl, byte [esp + edx + 0x18]
shl ecx, 5
mov eax, dword [ecx + eax + 0x18]
mov esi, eax
mov ebx, eax
and esi, 0xff0000
and ebx, 0xff
imul esi, dword [0x6191d4]
imul ebx, dword [0x660f48]
and esi, 0xff0000ff
and ebx, 0xff00
or esi, ebx
mov ebx, eax
and ebx, 0xff00
and eax, 0xff000000
imul ebx, dword [0x660f5c]
and ebx, 0xff0000
or esi, ebx
shr esi, 8
or esi, eax
mov eax, dword [0x55002c]
inc edx
mov dword [ecx + eax + 0x18], esi
mov eax, dword [0x55002c]
cmp edx, 4
mov dword [ecx + eax + 0x1c], ebp
jl 0x478f64
mov eax, dword [0x54d384]
mov dword [esp + 0x34], ebp
cmp eax, ebp
je 0x47907f
cmp dword [0x6b78f8], ebp
jne 0x47907f
xor ebx, ebx
mov eax, dword [0x55002c]
xor ecx, ecx
mov cl, byte [esp + ebx + 0x18]
mov esi, ecx
shl esi, 5
add esi, eax
fld dword [esi + 0xc]
fcomp dword [0x55007c]
fnstsw ax
test ah, 1
je 0x479075
fld dword [esi + 0xc]
fcomp dword [0x53b280]
fnstsw ax
test ah, 0x41
jne 0x479075
fld dword [esi + 0xc]
fcomp dword [0x550078]
mov dword [esp + 0x34], 1
fnstsw ax
test ah, 0x41
je 0x479048
xor eax, eax
jmp 0x47905c
fld dword [esi + 0xc]
fsub dword [0x550078]
fmul dword [0x550080]
call fcn.00529c7c
mov edx, dword [esi + 0x18]
mov ecx, edx
shr ecx, 8
imul ecx, eax
mov eax, ecx
xor eax, edx
and eax, 0xffffff
xor eax, ecx
mov dword [esi + 0x18], eax
inc ebx
cmp ebx, 4
jl 0x478ffa
mov eax, dword [esp + 0x38]
mov ecx, dword [0x568170]
and eax, 0xffff
cmp ecx, eax
jne 0x4790a0
mov ecx, dword [0xac08dc]
mov edx, dword [esp + 0x30]
cmp ecx, edx
je 0x4790ce
cmp dword [0x660ff8], ebp
je 0x4790ab
push ebp
jmp 0x4790ba
cmp dword [esp + 0x34], ebp
je 0x4790b5
push 1
jmp 0x4790ba
mov edx, dword [esp + 0x30]
push edx
push eax
call fcn.00506440
mov eax, dword [0x660fd4]
add esp, 8
inc eax
mov dword [0x660fd4], eax
movzx ax, byte [esp + 0x18]
movzx cx, byte [esp + 0x1a]
mov esi, dword [esp + 0x44]
mov word [esp + 0x58], ax
movzx ax, byte [esp + 0x19]
mov word [esp + 0x5c], cx
mov word [esp + 0x5e], cx
movzx cx, byte [esp + 0x1b]
lea edx, [esp + 0x58]
mov word [esp + 0x5a], ax
mov word [esp + 0x60], ax
mov eax, dword [0x55002c]
push 6
push edx
push esi
push eax
mov word [esp + 0x72], cx
call fcn.00506980
mov ecx, dword [0x660f90]
add esp, 0x10
add esi, 4
mov dword [esp + 0x44], esi
mov edx, dword [edi]
mov eax, dword [esp + 0x40]
shr edx, 0x10
add edi, edx
dec eax
mov dword [esp + 0x40], eax
jne 0x47876d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret