Function at 0x10057680
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x10200e40]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [0x1020f198]
mov edx, ecx
mov dword [esp + 0x10], eax
push esi
xor esi, esi
mov dword [esp + 0x38], edx
mov eax, dword [edx + 0x168]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + 0x1dc]
mov ecx, eax
mov dword [esp + 0x40], eax
movzx eax, word [edx + 0x1e0]
mov dword [esp + 0x70], ecx
mov ecx, eax
mov dword [esp + 0x6c], ecx
lea ecx, [esi + 4]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x78]
push edi
mov dword [esp + 0x1c], esi
mov dword [eax - 4], esi
lea eax, [eax + 0x18]
mov dword [eax - 0x18], esi
mov dword [eax - 0x14], esi
mov dword [eax - 0x10], esi
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
sub ecx, 1
jne 0x100576e4
mov eax, dword [edx + 0x40]
mov edx, dword [esp + 0x18]
lea eax, [eax*2 + 0x23]
sar eax, 5
shl eax, 2
mov dword [esp + 0x40], eax
movd xmm0, eax
lea edi, [eax + eax*4]
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x50], xmm0
cmp edi, dword [edx + 0x6024]
jle 0x1005777d
push edi
call fcn.1012189d
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, dword [edx + 0x6028]
test ecx, ecx
je 0x10057771
push dword [edx + 0x6020]
push ecx
push eax
call fcn.1010c860
mov eax, dword [esp + 0x24]
push dword [eax + 0x6028]
call fcn.1011b2ad
mov eax, dword [esp + 0x38]
add esp, 0x10
mov edx, dword [esp + 0x18]
mov dword [edx + 0x6028], eax
mov dword [edx + 0x6024], edi
push edi
push 0
push dword [edx + 0x6028]
call fcn.1010cde0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [0x1020326c], 2
mov edi, dword [eax + 0x6028]
jl 0x100577f1
movaps xmm1, xmmword [0x101f5100]
pmulld xmm1, xmmword [esp + 0x50]
movd xmm0, edi
pshufd xmm0, xmm0, 0
paddd xmm1, xmm0
movd dword [esp + 0x8c], xmm1
psrldq xmm1, 4
movd dword [esp + 0xa4], xmm1
psrldq xmm1, 4
movd dword [esp + 0xbc], xmm1
psrldq xmm1, 4
movd dword [esp + 0xd4], xmm1
jmp 0x10057815
xor ecx, ecx
lea edx, [esp + 0x8c]
lea esi, [ecx + 4]
nop dword [eax]
lea eax, [edi + ecx]
add ecx, dword [esp + 0x40]
mov dword [edx], eax
lea edx, [edx + 0x18]
sub esi, 1
jne 0x10057800
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x6028]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
lea eax, [eax + ecx*4]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x4c], eax
cmp dword [edi + 0x40], eax
jle 0x10057fa3
movaps xmm5, xmmword [0x101f55e0]
mov dword [esp + 0x34], eax
mov ecx, eax
mov edx, 1
and ecx, 0x1f
shl edx, cl
mov ecx, eax
mov eax, dword [edi + 0x30]
sar ecx, 5
test dword [eax + ecx*4], edx
je 0x10057a5c
mov edi, dword [edi + 0x10]
xor eax, eax
add edi, dword [esp + 0x34]
cmp word [esp + 0x44], ax
mov dword [esp + 0x48], edi
setg al
inc eax
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edx, edx
jne 0x1005788b
movzx eax, word [edi + 0x5e]
jmp 0x1005788f
movzx eax, word [edi + 0x60]
mov ecx, dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x38], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [esp + 0x28], eax
test eax, eax
jle 0x10057900
mov edi, dword [esp + 0x2c]
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [esp + 0x48]
cmp dword [edx + esi*8 - 0xc], 0
mov edx, dword [esp + 0x10]
jne 0x10057900
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [esp + 0x48]
cmp dword [edx + esi*8 - 8], 0
mov edx, dword [esp + 0x10]
jne 0x10057900
mov esi, dword [esp + 0x24]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x2c]
mov dword [esi + eax*8], ecx
cmp ecx, 1
jne 0x10057a3c
test dword [edi], 0x100
mov esi, dword [esp + 0x44]
jne 0x10057945
test si, si
jg 0x10057926
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [edi + 0x48]
jmp 0x1005793b
test edx, edx
jne 0x10057936
movss xmm0, dword [edi + 0x40]
maxss xmm0, dword [edi + 0x48]
jmp 0x1005793b
movss xmm0, dword [edi + 0x44]
comiss xmm0, dword [edi + 0x28]
ja 0x10057a3c
cmp word [esp + 0x6c], 0
jle 0x10057962
mov eax, dword [esp + 0x3c]
movsx eax, word [eax + 0x1e0]
cmp dword [esp + 0x4c], eax
jge 0x10057962
xor ecx, ecx
jmp 0x10057967
mov ecx, 1
test si, si
jle 0x10057974
test edx, edx
jne 0x10057974
xor eax, eax
jmp 0x10057979
mov eax, 2
add eax, ecx
mov dword [esp + 0x28], eax
lea esi, [eax + eax*2]
cmp dword [esp + esi*8 + 0x88], 0
jne 0x10057991
movups xmmword [esp + esi*8 + 0x78], xmm5
mov eax, dword [esp + 0x38]
mov ecx, eax
mov edx, dword [esp + esi*8 + 0x8c]
and eax, 0x1f
shr ecx, 5
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x38]
mov eax, dword [edx + ecx*4]
bts eax, edi
mov edi, dword [esp + 0x48]
mov dword [edx + ecx*4], eax
inc dword [esp + esi*8 + 0x88]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movss xmm0, dword [esp + esi*8 + 0x78]
mov eax, dword [ecx + eax*8 + 8]
movss xmm4, dword [eax]
comiss xmm0, xmm4
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss xmm3, dword [eax + 0xc]
jbe 0x100579f0
movss dword [esp + esi*8 + 0x78], xmm4
movss xmm0, dword [esp + esi*8 + 0x7c]
comiss xmm0, xmm1
jbe 0x10057a01
movss dword [esp + esi*8 + 0x7c], xmm1
comiss xmm2, dword [esp + esi*8 + 0x80]
jbe 0x10057a14
movss dword [esp + esi*8 + 0x80], xmm2
comiss xmm3, dword [esp + esi*8 + 0x84]
jbe 0x10057a27
movss dword [esp + esi*8 + 0x84], xmm3
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
bts esi, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
jmp 0x10057a40
mov esi, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [esp + 0x14]
jl 0x10057881
mov eax, 0xffff
mov word [edi + 0x5c], ax
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x34], 0x70
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [edi + 0x40]
jl 0x10057844
test esi, esi
je 0x10057fa3
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov esi, dword [eax + 4]
mov ecx, dword [edx + 0x4d28]
sub esi, 2
cmp esi, ecx
jle 0x10057b15
test ecx, ecx
je 0x10057aaa
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ecx
jmp 0x10057aaf
mov eax, 8
cmp eax, esi
mov edi, esi
cmovg edi, eax
cmp edi, ecx
jle 0x10057b15
lea eax, [edi + edi*2]
shl eax, 3
push eax
call fcn.1012189d
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x4d2c]
test edx, edx
je 0x10057b05
mov ecx, dword [ecx + 0x4d24]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call fcn.1010c860
mov eax, dword [esp + 0x24]
push dword [eax + 0x4d2c]
call fcn.1011b2ad
mov eax, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x18]
mov dword [edx + 0x4d2c], eax
mov dword [edx + 0x4d28], edi
mov ecx, dword [esp + 0x20]
mov dword [edx + 0x4d24], esi
mov edi, dword [edx + 0x4d2c]
mov edx, 2
mov dword [esp + 0x10], edi
mov esi, dword [ecx + 4]
dec esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], esi
cmp esi, edx
jl 0x10057ba5
nop
mov eax, edx
mov edi, edx
or eax, 0x1f
and edi, 0x1f
mov ecx, esi
and ecx, 0x1f
cmp esi, eax
mov eax, 0x1f
cmovg ecx, eax
mov eax, edx
mov edx, dword [esp + 0x30]
inc ecx
sar eax, 5
lea esi, [edx + eax*4]
xor edx, edx
bts edx, ecx
xor eax, eax
cmp ecx, 0x20
cmovae eax, edx
xor ecx, ecx
xor edx, eax
bts ecx, edi
dec edx
xor eax, eax
cmp edi, 0x20
cmovae eax, ecx
xor ecx, eax
neg ecx
and edx, ecx
or dword [esi], edx
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
add edx, 0x20
and edx, 0xffffffe0
mov dword [esp + 0x28], edx
cmp edx, esi
jle 0x10057b40
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
movaps xmm2, xmmword [0x101f55f0]
movzx edx, word [eax + 0x1e8]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [esi + ecx*4]
btr eax, edx
mov dword [esi + ecx*4], eax
xor eax, eax
cmp word [esp + 0x44], ax
mov ecx, dword [esp + 0x20]
setg al
add eax, 2
mov ecx, dword [ecx + 4]
sub ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
xor esi, esi
movups xmm0, xmmword [eax + 0x134]
movups xmmword [esp + 0x50], xmm0
movss xmm3, dword [esp + 0x5c]
movss xmm4, dword [esp + 0x58]
movss xmm6, dword [esp + 0x54]
movss xmm5, dword [esp + 0x50]
mov dword [esp + 0x38], esi
lea eax, [esi + esi*2]
shl eax, 3
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + eax + 0x88]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x10057ec1
movups xmm0, xmmword [esp + eax + 0x78]
mov edx, esi
movups xmmword [esp + 0x50], xmm0
and edx, 1
je 0x10057c4a
cmp word [esp + 0x70], 0
jg 0x10057c5a
movss xmm0, dword [esp + 0x50]
minss xmm0, xmm5
movss dword [esp + 0x50], xmm0
and esi, 2
je 0x10057c67
cmp word [esp + 0x44], 0
jg 0x10057c77
movss xmm0, dword [esp + 0x54]
minss xmm0, xmm6
movss dword [esp + 0x54], xmm0
test edx, edx
je 0x10057c8b
movss xmm0, dword [esp + 0x58]
maxss xmm0, xmm4
movss dword [esp + 0x58], xmm0
test esi, esi
je 0x10057cac
mov edx, dword [esp + 0x3c]
test dword [edx + 4], 0x20000
jne 0x10057cac
movss xmm0, dword [esp + 0x5c]
maxss xmm0, xmm3
movss dword [esp + 0x5c], xmm0
mov esi, dword [esp + 0x40]
xor edx, edx
sub dword [esp + 0x24], ecx
sar esi, 2
mov dword [esp + 0x48], esi
test esi, esi
jle 0x10057e16
cmp esi, 0x10
jb 0x10057de1
mov ecx, dword [esp + eax + 0x8c]
lea eax, [esp + eax + 0x8c]
mov dword [esp + 0x14], eax
lea eax, [esi - 1]
mov dword [esp + 0x6c], ecx
lea eax, [ecx + eax*4]
cmp dword [esp + 0x30], eax
ja 0x10057d02
mov eax, dword [esp + 0x30]
add eax, 0xfffffffc
lea eax, [eax + esi*4]
cmp eax, ecx
jae 0x10057ddd
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x30], eax
ja 0x10057d1e
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffffc
lea ecx, [ecx + esi*4]
cmp ecx, eax
jae 0x10057ddd
mov eax, esi
and eax, 0x8000000f
jns 0x10057d2c
dec eax
or eax, 0xfffffff0
inc eax
mov edi, dword [esp + 0x30]
mov ecx, esi
sub ecx, eax
mov esi, 0x20
mov eax, 0xfffffff0
mov dword [esp + 0x34], ecx
sub eax, edi
mov dword [esp + 0x14], eax
lea ecx, [edi + 0x20]
mov eax, 0x10
sub eax, edi
mov dword [esp + 0x28], eax
mov eax, 0xffffffe0
sub eax, edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
movups xmm0, xmmword [ecx - 0x20]
add eax, ecx
lea esi, [esi + 0x40]
add edx, 0x10
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x14]
add eax, ecx
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x28]
movups xmm0, xmmword [ecx - 0x10]
add eax, ecx
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
movups xmm1, xmmword [esi + edi - 0x40]
movups xmm0, xmmword [ecx]
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x4c]
movups xmm0, xmmword [ecx + 0x10]
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
add ecx, 0x40
cmp edx, dword [esp + 0x34]
jl 0x10057d65
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], edx
cmp edx, esi
jge 0x10057e0e
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
nop word [eax + eax]
mov eax, dword [esp + eax + 0x8c]
lea ecx, [edi + edx*4]
mov eax, dword [eax + edx*4]
inc edx
not eax
and dword [ecx], eax
mov eax, dword [esp + 0x1c]
cmp edx, esi
jl 0x10057df0
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
xor edx, edx
cmp dword [esi + 4], edx
jle 0x10057ebd
mov dword [esp + 0x34], edx
nop dword [eax]
test ecx, ecx
je 0x10057ebd
mov eax, dword [esp + eax + 0x8c]
mov esi, edx
sar esi, 5
mov ecx, edx
mov dword [esp + 0x14], eax
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x10057e9e
mov eax, dword [esp + 0x14]
btr edi, ecx
movaps xmm0, xmmword [esp + 0x50]
dec dword [esp + 0x2c]
mov dword [eax + esi*4], edi
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
add ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm0
mov eax, edi
add edi, 0x18
movups xmm0, xmmword [ecx]
mov dword [esp + 0x10], edi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
jmp 0x10057ea2
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc edx
add dword [esp + 0x34], 0x18
mov ecx, dword [esp + 0x2c]
cmp edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
jl 0x10057e30
mov esi, dword [esp + 0x38]
cmp esi, 1
jne 0x10057f04
cmp word [esp + 0x74], 0
jle 0x10057f04
mov eax, dword [esp + 0x3c]
mov edx, edi
add edi, 0x18
inc esi
mov dword [esp + 0x10], edi
movzx eax, word [eax + 0x1e8]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
movq qword [edx + 0x10], xmm0
jmp 0x10057c10
inc esi
mov dword [esp + 0x38], esi
cmp esi, 4
jl 0x10057c14
mov ecx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [ecx + 4]
test eax, eax
jle 0x10057f7f
mov edx, dword [esp + 0x24]
mov dword [esp + 0x40], esi
test edx, edx
je 0x10057f7f
mov ecx, esi
mov edx, 1
and ecx, 0x1f
mov eax, esi
shl edx, cl
mov ecx, dword [esp + 0x30]
sar eax, 5
test dword [ecx + eax*4], edx
mov edx, dword [esp + 0x24]
je 0x10057f6e
mov eax, dword [esp + 0x20]
mov ecx, edi
add edi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [esp + 0x40]
dec edx
mov dword [esp + 0x24], edx
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x20]
inc esi
add dword [esp + 0x40], 0x18
mov eax, dword [ecx + 4]
cmp esi, eax
jl 0x10057f27
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x4d2c]
mov eax, dword [ecx + 0x10]
add eax, 0x30
push eax
call fcn.1010c860
add esp, 0xc
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.10109e3a
mov esp, ebp
pop ebp
ret