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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, ecx
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x10048964
mov ecx, dword [ebx + 0x28]
xor esi, esi
mov edx, 0
cmp eax, 8
jb 0x1004893c
mov ebp, ebx
mov edx, eax
and edx, 0xfffffff8
pxor xmm0, xmm0
mov edi, edx
mov ebx, ecx
pxor xmm1, xmm1
nop word [eax + eax]
movd xmm2, dword [ebx + 0x78]
movd xmm3, dword [ebx + 0x50]
punpckldq xmm3, xmm2
movd xmm4, dword [ebx + 0x28]
movd xmm2, dword [ebx]
punpckldq xmm2, xmm4
punpcklqdq xmm2, xmm3
movd xmm3, dword [ebx + 0x118]
movd xmm4, dword [ebx + 0xf0]
punpckldq xmm4, xmm3
movd xmm5, dword [ebx + 0xc8]
movd xmm3, dword [ebx + 0xa0]
punpckldq xmm3, xmm5
punpcklqdq xmm3, xmm4
psrld xmm2, 2
psrld xmm3, 2
movdqa xmm4, xmm0
pcmpgtd xmm0, xmm2
pand xmm4, xmm0
pandn xmm0, xmm2
por xmm0, xmm4
movdqa xmm2, xmm1
pcmpgtd xmm1, xmm3
pand xmm2, xmm1
pandn xmm1, xmm3
por xmm1, xmm2
add ebx, 0x140
add edi, 0xfffffff8
jne 0x10048860
movdqa xmm2, xmm0
pcmpgtd xmm2, xmm1
pand xmm0, xmm2
pandn xmm2, xmm1
por xmm2, xmm0
pshufd xmm0, xmm2, 0xee
movdqa xmm1, xmm2
pcmpgtd xmm1, xmm0
pand xmm2, xmm1
pandn xmm1, xmm0
por xmm1, xmm2
pshufd xmm0, xmm1, 0x55
movdqa xmm2, xmm1
pcmpgtd xmm2, xmm0
pand xmm1, xmm2
pandn xmm2, xmm0
por xmm2, xmm1
movd esi, xmm2
cmp eax, edx
mov ebx, ebp
je 0x10048966
sub eax, edx
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*8]
mov edx, esi
nop word cs:[eax + eax]
mov esi, dword [ecx]
shr esi, 2
cmp edx, esi
cmovg esi, edx
add ecx, 0x28
mov edx, esi
dec eax
jne 0x10048950
jmp 0x10048966
xor esi, esi
mov eax, dword [ebx + 8]
test eax, eax
je 0x1004898a
mov dword [ebx + 4], 0
mov dword [ebx], 0
push eax
call fcn.10021ba0
add esp, 4
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x100489af
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
push eax
call fcn.10021ba0
add esp, 4
mov dword [ebx + 0x1c], 0
mov byte [ebx + 0x40], 0
mov word [ebx + 0x54], 0
lea eax, [esi + 1]
mov ecx, ebx
mov dword [esp], eax
push eax
call fcn.10048f40
mov ebp, dword [ebx + 0x20]
test ebp, ebp
jle 0x10048a2b
xor eax, eax
mov edx, 4
nop word cs:[eax + eax]
mov ecx, dword [ebx + 8]
mov ebp, dword [ebx + 0x28]
mov edi, dword [ebp + edx - 4]
movd xmm0, dword [ebp + edx]
mov ebp, edi
and ebp, 0xfffffffc
movd dword [ecx + ebp], xmm0
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
shr ebp, 2
mov word [ecx + ebp*2], ax
mov ecx, edi
shr ecx, 0xe
and cl, 7
mov ebp, ebx
mov ebx, 1
shl ebx, cl
shr edi, 0x11
or byte [ebp + edi + 0x54], bl
mov ebx, ebp
inc eax
mov ebp, dword [ebp + 0x20]
add edx, 0x28
cmp eax, ebp
jl 0x100489e0
mov eax, dword [ebx + 0x14]
cmp eax, 0x20
jbe 0x10048a42
mov ecx, dword [ebx + 0x1c]
movzx ecx, word [ecx + 0x40]
cmp ecx, 0xffff
jne 0x10048a57
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x10048a64
cmp eax, 0x20
ja 0x10048b7a
jmp 0x10048b89
lea ecx, [ecx + ecx*4]
shl ecx, 3
add ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x10048a49
mov edi, dword [ebx + 0x28]
lea ecx, [ebp - 1]
lea edx, [ecx + ecx*4]
mov edx, dword [edi + edx*8]
and edx, 0xfffffffc
cmp edx, 0x24
jne 0x10048a7c
mov ebp, ecx
jmp 0x10048af8
lea edx, [ebp + 1]
mov ecx, dword [ebx + 0x24]
cmp ecx, ebp
jg 0x10048af5
test ecx, ecx
je 0x10048a97
mov eax, ecx
shr eax, 0x1f
add eax, ecx
sar eax, 1
add eax, ecx
jmp 0x10048a9c
mov eax, 8
cmp eax, edx
mov dword [esp + 8], edx
cmovle eax, edx
mov dword [esp + 4], eax
lea eax, [eax*8]
lea eax, [eax + eax*4]
push eax
call fcn.10021b70
add esp, 4
mov edi, eax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10048ae4
mov ecx, dword [ebx + 0x20]
shl ecx, 3
lea ecx, [ecx + ecx*4]
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebx + 0x28]
call fcn.10021ba0
add esp, 4
mov dword [ebx + 0x28], edi
mov eax, dword [esp + 4]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [esp + 8]
mov dword [ebx + 0x20], edx
lea edx, [ebp*4]
add edx, ebp
lea ecx, [edi + edx*8]
cmp eax, 0x20
jbe 0x10048b17
mov eax, dword [ebx + 0x1c]
movzx eax, word [eax + 0x40]
cmp eax, 0xffff
jne 0x10048b1c
mov eax, dword [ebx + 0x2c]
jmp 0x10048b22
lea eax, [eax + eax*4]
lea eax, [edi + eax*8]
movups xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movups xmmword [ecx], xmm0
movsd xmm0, qword [eax + 0x20]
movsd qword [ecx + 0x20], xmm0
movdqu xmmword [ecx + 0x10], xmm1
mov eax, dword [ecx]
and eax, 3
or eax, 0x24
mov dword [ecx], eax
movss xmm0, dword [edi + edx*8 + 4]
mulss xmm0, dword [0x10074350]
movss dword [edi + edx*8 + 4], xmm0
mov eax, dword [ebx + 8]
movss dword [eax + 0x24], xmm0
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
dec edx
mov ecx, dword [ecx]
shr ecx, 2
mov word [eax + ecx*2], dx
mov eax, dword [ebx + 0x14]
cmp eax, 0x20
jbe 0x10048b89
mov ecx, dword [ebx + 0x1c]
movzx ecx, word [ecx + 0x40]
cmp ecx, 0xffff
jne 0x10048bec
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x10048b96
and byte [ecx], 0xfd
mov eax, dword [ebx + 0x14]
cmp eax, 9
jbe 0x10048baa
mov ecx, dword [ebx + 0x1c]
movzx ecx, word [ecx + 0x12]
cmp ecx, 0xffff
jne 0x10048bfb
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x10048bb7
and byte [ecx], 0xfd
mov eax, dword [ebx + 0x14]
cmp word [ebx + 0x3c], 0xffff
mov ecx, dword [ebx + 0x1c]
je 0x10048bce
cmp word [ebx + 0x3e], 0xffff
jne 0x10048c6a
jmp 0x10048c32
mov edx, dword [ebx + 0x28]
cmp eax, 0x2027
jb 0x10048c0a
cmp word [ecx + 0x404c], 0xffff
je 0x10048c11
mov di, 0x2026
test edx, edx
jne 0x10048c27
jmp 0x10048c11
lea ecx, [ecx + ecx*4]
shl ecx, 3
add ecx, dword [ebx + 0x28]
test ecx, ecx
jne 0x10048b90
jmp 0x10048b96
lea ecx, [ecx + ecx*4]
shl ecx, 3
add ecx, dword [ebx + 0x28]
test ecx, ecx
jne 0x10048bb1
jmp 0x10048bb7
cmp eax, 0x86
jb 0x10048c23
cmp word [ecx + 0x10a], 0xffff
je 0x10048c23
mov di, 0x85
test edx, edx
jne 0x10048c27
mov di, 0xffff
mov word [ebx + 0x3c], di
cmp word [ebx + 0x3e], 0xffff
jne 0x10048c6a
cmp eax, 0x2f
jb 0x10048c62
mov edx, dword [ebx + 0x28]
cmp word [ecx + 0x5c], 0xffff
je 0x10048c49
mov di, 0x2e
test edx, edx
jne 0x10048c66
cmp eax, 0xff0f
jb 0x10048c62
cmp word [ecx + 0x1fe1c], 0xffff
je 0x10048c62
mov di, 0xff0e
test edx, edx
jne 0x10048c66
mov di, 0xffff
mov word [ebx + 0x3e], di
movzx edx, word [ebx + 0x3a]
cmp eax, edx
jbe 0x10048caa
movzx edx, word [ecx + edx*2]
cmp edx, 0xffff
je 0x10048caa
mov edi, dword [ebx + 0x28]
lea edx, [edx + edx*4]
lea ebp, [edi + edx*8]
mov dword [ebx + 0x2c], ebp
test edi, edi
jne 0x10048d30
lea edi, [ebx + 0x2c]
xor edx, edx
cmp eax, 0xfffe
jae 0x10048cbe
cmp eax, 0x40
jae 0x10048cd0
cmp eax, 0x21
jae 0x10048cdf
jmp 0x10048cee
lea edi, [ebx + 0x2c]
mov dword [ebx + 0x2c], 0
mov edx, dword [ebx + 0x28]
cmp eax, 0xfffe
jb 0x10048c9e
cmp word [ecx + 0x1fffa], 0xffff
je 0x10048cd0
mov bp, 0xfffd
test edx, edx
jne 0x10048cf2
cmp word [ecx + 0x7e], 0xffff
je 0x10048cdf
mov bp, 0x3f
test edx, edx
jne 0x10048cf2
cmp word [ecx + 0x40], 0xffff
je 0x10048cee
mov bp, 0x20
test edx, edx
jne 0x10048cf2
mov bp, 0xffff
mov word [ebx + 0x3a], bp
movzx ebp, bp
cmp eax, ebp
jbe 0x10048d16
movzx eax, word [ecx + ebp*2]
cmp eax, 0xffff
je 0x10048d16
lea eax, [eax + eax*4]
lea ebp, [edx + eax*8]
mov dword [edi], ebp
test edx, edx
jne 0x10048d30
xor edx, edx
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*4]
lea ebp, [edx + eax*8]
add ebp, 0xffffffd8
mov dword [ebx + 0x2c], ebp
mov eax, dword [edx + eax*8 - 0x28]
shr eax, 2
mov word [ebx + 0x3a], ax
movss xmm0, dword [ebp + 4]
movss dword [ebx + 0xc], xmm0
test esi, esi
je 0x10048d81
mov ecx, dword [esp]
and ecx, 0xfffffffe
xor eax, eax
xorps xmm0, xmm0
jmp 0x10048d57
add eax, 2
cmp ecx, eax
je 0x10048d83
mov edx, dword [ebx + 8]
ucomiss xmm0, dword [edx + eax*4]
jbe 0x10048d6a
movd xmm1, dword [ebx + 0xc]
movd dword [edx + eax*4], xmm1
mov edx, dword [ebx + 8]
ucomiss xmm0, dword [edx + eax*4 + 4]
jbe 0x10048d50
movd xmm1, dword [ebx + 0xc]
movd dword [edx + eax*4 + 4], xmm1
jmp 0x10048d50
xor eax, eax
test byte [esp], 1
je 0x10048d9f
mov ecx, dword [ebx + 8]
xorps xmm0, xmm0
ucomiss xmm0, dword [ecx + eax*4]
jbe 0x10048d9f
movss xmm0, dword [ebx + 0xc]
movss dword [ecx + eax*4], xmm0
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret