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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 0x20]
lea eax, [esi + 0x20]
push edi
xor edi, edi
lea ebx, [esi + 0x28]
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x1005427c
mov ecx, dword [ebx]
nop
mov eax, dword [ecx]
lea ecx, [ecx + 0x28]
shr eax, 2
cmp edi, eax
cmovge eax, edi
mov edi, eax
sub edx, 1
jne 0x10054260
lea ecx, [esi + 0x20]
mov dword [ebp - 0x10], ecx
jmp 0x10054282
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x100542a6
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10038dc0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100542d2
push eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
call fcn.10038dc0
add esp, 4
mov dword [esi + 0x1c], 0
lea ebx, [esi + 0x28]
mov byte [esi + 0x44], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x58], xmm0
inc edi
mov ecx, esi
movups xmmword [esi + 0x68], xmm0
push edi
mov word [esi + 0x78], 0
mov dword [ebp - 0x14], edi
call fcn.10054660
mov edx, dword [esi + 0x20]
mov dword [ebp - 8], 0
mov dword [ebp - 4], edx
test edx, edx
jle 0x10054369
mov edi, dword [ebp - 0xc]
xor ebx, ebx
nop dword [eax]
mov ecx, dword [edi]
lea ebx, [ebx + 0x28]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + ebx - 0x28]
movss xmm0, dword [ecx + ebx - 0x24]
mov ecx, dword [esi + 8]
shr eax, 2
movss dword [ecx + eax*4], xmm0
mov ecx, dword [esi + 0x1c]
mov dword [ecx + eax*4], edx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov edx, eax
and eax, 7
sar edx, 3
movzx ecx, byte [edx + esi + 0x58]
bts ecx, eax
mov eax, dword [ebp - 8]
mov byte [edx + esi + 0x58], cl
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp eax, edx
jl 0x10054310
lea ebx, [esi + 0x28]
cmp dword [esi + 0x14], 0x20
lea edi, [esi + 0x2c]
ja 0x10054376
mov eax, dword [edi]
jmp 0x10054391
mov eax, dword ds:[esi + 0x1c]
mov eax, dword [eax + 0x80]
cmp eax, 0xffffffff
jne 0x10054389
mov eax, dword [edi]
jmp 0x10054391
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
lea eax, [eax + ecx*8]
mov edx, dword ds:[ebp - 4]
mov ecx, esi
add ecx, 0x1c
mov dword [ebp - 8], ecx
test eax, eax
je 0x1005446d
mov eax, dword [ebx]
lea edx, [edx + edx*4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
mov eax, dword [eax + edx*8 - 0x28]
and eax, 0xfffffffc
cmp eax, 0x24
je 0x100543d8
mov eax, dword [ebp - 4]
lea ecx, [esi + 0x20]
inc eax
push eax
call fcn.10058c60
lea ecx, [esi + 0x1c]
lea eax, [esi + 0x2c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x14], 0x20
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
mov dword [ebp - 0xc], edx
lea ebx, [eax + eax*4]
ja 0x100543ee
mov eax, dword [edi]
jmp 0x10054405
mov eax, dword [ecx]
mov eax, dword [eax + 0x80]
cmp eax, 0xffffffff
jne 0x100543ff
mov eax, dword [edi]
jmp 0x10054405
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
movups xmm0, xmmword [eax]
mov edi, dword [ebp - 0x10]
movups xmmword [edx + ebx*8 - 0x28], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edx + ebx*8 - 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [edx + ebx*8 - 8], xmm0
movss xmm0, dword [edx + ebx*8 - 0x24]
mov ecx, dword [edx + ebx*8 - 0x28]
mulss xmm0, dword [0x101597fc]
and ecx, 3
or ecx, 0x24
mov dword [edx + ebx*8 - 0x28], ecx
shr ecx, 2
movss dword [edx + ebx*8 - 0x24], xmm0
mov eax, dword [esi + 8]
movss dword [eax + ecx*4], xmm0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x20]
dec edx
mov ecx, dword [ecx + ebx*8 - 0x28]
lea ebx, [esi + 0x28]
mov eax, dword [eax]
shr ecx, 2
mov dword [eax + ecx*4], edx
mov ecx, dword [ebp - 8]
cmp dword [esi + 0x14], 0x20
ja 0x10054477
mov eax, dword [edi]
jmp 0x10054491
mov eax, dword ds:[ecx]
mov eax, dword [eax + 0x80]
cmp eax, 0xffffffff
jne 0x10054489
mov eax, dword [edi]
jmp 0x10054491
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
lea eax, [eax + ecx*8]
mov edx, edi
test eax, eax
je 0x100544a0
and dword [eax], 0xfffffffd
lea edx, [esi + 0x2c]
lea ebx, [esi + 0x28]
cmp dword [esi + 0x14], 9
ja 0x100544aa
mov eax, dword [edi]
jmp 0x100544c3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
cmp eax, 0xffffffff
jne 0x100544bb
mov eax, dword [edx]
jmp 0x100544c3
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
lea eax, [eax + ecx*8]
test eax, eax
je 0x100544d0
and dword [eax], 0xfffffffd
lea ebx, [esi + 0x28]
lea edx, [esi + 0x2c]
mov ecx, dword [esi + 0x3c]
xorps xmm0, xmm0
cmp ecx, dword [esi + 0x14]
jae 0x100544fb
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + ecx*4]
cmp eax, 0xffffffff
je 0x100544fb
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
lea eax, [eax + ecx*8]
mov dword [edx], eax
test eax, eax
je 0x10054501
movss xmm1, dword [eax + 4]
jmp 0x10054504
mov dword [edx], 0
xorps xmm1, xmm1
mov edi, dword [ebp - 0x14]
xor edx, edx
movss dword [esi + 0xc], xmm1
cmp edi, 4
jl 0x10054566
mov ebx, dword [esi + 8]
add edi, 0xfffffffc
shr edi, 2
inc edi
lea ecx, [ebx + 8]
lea edx, [edi*4]
comiss xmm0, dword [ecx - 8]
jbe 0x10054533
mov eax, dword [esi + 0xc]
mov dword [ecx - 8], eax
comiss xmm0, dword [ecx - 4]
jbe 0x1005453f
mov eax, dword [esi + 0xc]
mov dword [ecx - 4], eax
comiss xmm0, dword [ecx]
jbe 0x10054549
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
comiss xmm0, dword [ecx + 4]
jbe 0x10054555
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
add ecx, 0x10
sub edi, 1
jne 0x10054527
mov edi, dword [ebp - 0x14]
cmp edx, edi
jge 0x10054584
jmp 0x10054570
test edi, edi
jle 0x10054584
mov ebx, dword [esi + 8]
nop dword [eax]
comiss xmm0, dword [ebx + edx*4]
jbe 0x1005457c
mov eax, dword [esi + 0xc]
mov dword [ebx + edx*4], eax
inc edx
cmp edx, edi
jl 0x10054570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret