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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [0x524aa8]
mov edx, ecx
mov dword [esp + 0x24], eax
push esi
xor esi, esi
mov dword [esp + 0x2c], edx
mov eax, dword [edx + 0x168]
mov dword [esp + 0x18], eax
movzx eax, word [edx + 0x1dc]
mov ecx, eax
mov dword [esp + 0x38], eax
movzx eax, word [edx + 0x1e0]
mov dword [esp + 0x60], ecx
mov ecx, eax
mov dword [esp + 0x5c], ecx
lea ecx, [esi + 4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x68]
push edi
mov dword [esp + 0x14], 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 0x435584
mov eax, dword [edx + 0x40]
mov edx, dword [esp + 0x2c]
lea eax, [eax*2 + 0x23]
sar eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x38], eax
movd xmm0, eax
lea edi, [eax + eax*4]
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x50], xmm0
cmp edi, dword [edx + 0x5f70]
jle 0x43561b
mov ecx, edi
call fcn.0043da90
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov ecx, dword [edx + 0x5f74]
test ecx, ecx
je 0x43560f
push dword [edx + 0x5f6c]
push ecx
push eax
call fcn.00472aa0
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [eax + 0x5f74]
call fcn.0043db20
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x5f74], eax
mov dword [edx + 0x5f70], edi
push edi
push 0
push dword [edx + 0x5f74]
call fcn.004726d0
mov ecx, dword [esp + 0x38]
add esp, 0xc
cmp dword [0x5229e0], 2
mov eax, dword [ecx + 0x5f74]
jl 0x435690
movaps xmm1, xmmword [0x511b50]
pmulld xmm1, xmmword [esp + 0x50]
movd xmm0, dword [ecx + 0x5f74]
pshufd xmm0, xmm0, 0
paddd xmm1, xmm0
movd dword [esp + 0x7c], xmm1
psrldq xmm1, 4
movd dword [esp + 0x94], xmm1
psrldq xmm1, 4
movd dword [esp + 0xac], xmm1
psrldq xmm1, 4
movd dword [esp + 0xc4], xmm1
jmp 0x4356b7
xor ecx, ecx
lea edx, [esp + 0x7c]
mov esi, eax
lea edi, [ecx + 4]
nop dword [eax + eax]
lea eax, [esi + ecx]
add ecx, dword [esp + 0x38]
mov dword [edx], eax
lea edx, [edx + 0x18]
sub edi, 1
jne 0x4356a0
mov ecx, dword [esp + 0x2c]
xor esi, esi
mov eax, dword [ecx + 0x5f74]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
lea eax, [eax + ecx*4]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [edi + 0x40], eax
jle 0x435e1a
mov dword [esp + 0x34], eax
nop
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 0x43590d
mov edi, dword [edi + 0x10]
xor eax, eax
add edi, dword [esp + 0x34]
cmp word [esp + 0x3c], ax
mov dword [esp + 0x40], edi
setg al
inc eax
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edx
nop dword [eax]
test edx, edx
jne 0x43572a
movzx eax, word [edi + 0x5e]
jmp 0x43572e
movzx eax, word [edi + 0x60]
mov ecx, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x44], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [esp + 0xc], eax
test eax, eax
jle 0x4357a3
mov edi, dword [esp + 0x20]
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [esp + 0x40]
cmp dword [edx + esi*8 - 0xc], 0
mov edx, dword [esp + 0x10]
jne 0x43579f
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [esp + 0x40]
cmp dword [edx + esi*8 - 8], 0
mov edx, dword [esp + 0x10]
jne 0x43579f
mov esi, dword [esp + 0x18]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x20]
mov dword [esi + eax*8], ecx
mov esi, dword [esp + 0x14]
cmp ecx, 1
jne 0x4358f1
test dword [edi], 0x100
jne 0x4357e7
cmp word [esp + 0x3c], 0
jg 0x4357c8
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [edi + 0x48]
jmp 0x4357dd
test edx, edx
jne 0x4357d8
movss xmm0, dword [edi + 0x40]
maxss xmm0, dword [edi + 0x48]
jmp 0x4357dd
movss xmm0, dword [edi + 0x44]
comiss xmm0, dword [edi + 0x28]
ja 0x4358f1
cmp word [esp + 0x48], 0
jle 0x435804
mov eax, dword [esp + 0x30]
movsx eax, word [eax + 0x1e0]
cmp dword [esp + 0x24], eax
jge 0x435804
xor ecx, ecx
jmp 0x435809
mov ecx, 1
cmp word [esp + 0x3c], 0
jle 0x435819
test edx, edx
jne 0x435819
xor eax, eax
jmp 0x43581e
mov eax, 2
add eax, ecx
mov dword [esp + 0x4c], eax
lea esi, [eax + eax*2]
cmp dword [esp + esi*8 + 0x78], 0
lea eax, [esp + esi*8 + 0x6c]
mov dword [esp + 0xc], eax
jne 0x435856
mov dword [esp + esi*8 + 0x68], 0x7f7fffff
mov dword [eax], 0x7f7fffff
mov dword [esp + esi*8 + 0x70], 0xff7fffff
mov dword [esp + esi*8 + 0x74], 0xff7fffff
jmp 0x43585a
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov ecx, eax
mov edx, dword [esp + esi*8 + 0x7c]
and eax, 0x1f
shr ecx, 5
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x44]
mov eax, dword [edx + ecx*4]
bts eax, edi
mov edi, dword [esp + 0x40]
mov dword [edx + ecx*4], eax
inc dword [esp + esi*8 + 0x78]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movss xmm0, dword [esp + esi*8 + 0x68]
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 0x4358b3
movss dword [esp + esi*8 + 0x68], xmm4
mov eax, dword [esp + 0xc]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x4358c4
movss dword [eax], xmm1
comiss xmm2, dword [esp + esi*8 + 0x70]
jbe 0x4358d1
movss dword [esp + esi*8 + 0x70], xmm2
comiss xmm3, dword [esp + esi*8 + 0x74]
jbe 0x4358de
movss dword [esp + esi*8 + 0x74], xmm3
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
bts esi, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], esi
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [esp + 0x28]
jl 0x435720
mov eax, 0xffff
mov word [edi + 0x5c], ax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
add dword [esp + 0x34], 0x70
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [edi + 0x40]
jl 0x4356e0
test esi, esi
je 0x435e1a
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov eax, dword [edi + 4]
sub eax, 2
lea ecx, [esi + 0x4cac]
push eax
call fcn.00438130
mov esi, dword [esi + 0x4cb4]
mov edx, 2
mov dword [esp + 0x20], esi
mov esi, dword [edi + 4]
dec esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x28], esi
cmp esi, edx
jl 0x4359ca
mov eax, edx
mov edi, edx
or eax, 0x1f
mov ecx, esi
and ecx, 0x1f
and edi, 0x1f
cmp esi, eax
mov esi, edx
mov eax, 0x1f
cmovg ecx, eax
xor edx, edx
inc ecx
sar esi, 5
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
mov eax, dword [esp + 8]
neg ecx
and edx, ecx
or dword [eax + esi*4], edx
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
add edx, 0x20
and edx, 0xffffffe0
mov dword [esp + 0xc], edx
cmp edx, esi
jle 0x435965
mov edi, dword [esp + 0x1c]
jmp 0x4359ce
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x30]
movaps xmm3, xmmword [0x511c70]
movzx edx, word [ecx + 0x1e8]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [eax + ecx*4]
btr eax, edx
mov edx, dword [esp + 8]
mov dword [edx + ecx*4], eax
xor eax, eax
cmp word [esp + 0x3c], ax
mov esi, dword [edi + 4]
setg al
add eax, 2
sub esi, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], esi
movups xmm0, xmmword [eax + 0x134]
xor eax, eax
movups xmmword [esp + 0x50], xmm0
movss xmm4, dword [esp + 0x5c]
movss xmm5, dword [esp + 0x58]
movss xmm6, dword [esp + 0x54]
movss xmm7, dword [esp + 0x50]
mov dword [esp + 0x14], eax
nop dword [eax]
lea edi, [eax + eax*2]
shl edi, 3
mov dword [esp + 0x18], edi
mov ecx, dword [esp + edi + 0x78]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x435d28
movups xmm2, xmmword [esp + edi + 0x68]
movaps xmmword [esp + 0x50], xmm2
test al, 1
je 0x435a70
cmp word [esp + 0x60], 0
jg 0x435a80
comiss xmm7, xmm2
ja 0x435a80
movss dword [esp + 0x50], xmm7
movaps xmm2, xmmword [esp + 0x50]
test al, 2
je 0x435a8c
cmp word [esp + 0x3c], 0
jg 0x435aa3
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
comiss xmm6, xmm0
ja 0x435aa3
movss dword [esp + 0x54], xmm6
movaps xmm2, xmmword [esp + 0x50]
test al, 1
je 0x435abe
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
comiss xmm0, xmm5
jae 0x435abe
movss dword [esp + 0x58], xmm5
movaps xmm2, xmmword [esp + 0x50]
test al, 2
je 0x435ae6
mov ecx, dword [esp + 0x30]
test dword [ecx + 4], 0x20000
jne 0x435ae6
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
comiss xmm0, xmm4
jae 0x435ae6
movss dword [esp + 0x5c], xmm4
movaps xmm2, xmmword [esp + 0x50]
sub esi, dword [esp + edi + 0x78]
xor ecx, ecx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x38]
sar esi, 2
mov dword [esp + 0x40], esi
test esi, esi
jle 0x435c95
cmp esi, 2
jb 0x435c80
mov edx, dword [esp + edi + 0x7c]
lea eax, [esp + edi + 0x7c]
mov edi, dword [esp + 0x18]
lea eax, [esi - 1]
mov dword [esp + 0x28], edx
lea eax, [edx + eax*4]
cmp dword [esp + 8], eax
ja 0x435b3a
mov eax, dword [esp + 8]
add eax, 0xfffffffc
lea eax, [eax + esi*4]
cmp eax, edx
jae 0x435c74
lea eax, [esp + edi + 0x7c]
cmp dword [esp + 8], eax
ja 0x435b5a
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x18]
add edx, 0xfffffffc
lea edx, [edx + esi*4]
cmp edx, eax
jae 0x435c74
cmp esi, 0x10
jb 0x435c28
mov eax, esi
and eax, 0x8000000f
jns 0x435b71
dec eax
or eax, 0xfffffff0
inc eax
mov edi, dword [esp + 8]
mov edx, esi
sub edx, eax
mov esi, 0x20
mov eax, 0xfffffff0
mov dword [esp + 0xc], edx
sub eax, edi
mov dword [esp + 0x4c], eax
lea edx, [edi + 0x20]
mov eax, 0x10
sub eax, edi
mov dword [esp + 0x48], eax
mov eax, 0xffffffe0
sub eax, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x24], eax
nop word [eax + eax]
movups xmm0, xmmword [edx - 0x20]
add eax, edx
lea esi, [esi + 0x40]
add ecx, 0x10
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x4c]
add eax, edx
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x48]
movups xmm0, xmmword [edx - 0x10]
add eax, edx
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx - 0x10], xmm1
movups xmm1, xmmword [esi + edi - 0x40]
movups xmm0, xmmword [edx]
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x24]
movups xmm0, xmmword [edx + 0x10]
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
add edx, 0x40
cmp ecx, dword [esp + 0xc]
jl 0x435bb0
mov esi, dword [esp + 0x40]
mov eax, esi
mov edi, dword [esp + 0x18]
and al, 0xf
cmp al, 2
jb 0x435c70
mov eax, dword [esp + edi + 0x7c]
mov dword [esp + 0x28], eax
mov eax, esi
and eax, 0x80000001
jns 0x435c3e
dec eax
or eax, 0xfffffffe
inc eax
mov edi, dword [esp + 8]
mov edx, esi
sub edx, eax
mov eax, dword [esp + 0x28]
nop word [eax + eax]
movq xmm1, qword [eax + ecx*4]
movq xmm0, qword [edi + ecx*4]
andnps xmm1, xmm3
andps xmm1, xmm0
movq qword [edi + ecx*4], xmm1
add ecx, 2
cmp ecx, edx
jl 0x435c50
mov edi, dword [esp + 0x18]
cmp ecx, esi
jge 0x435c91
mov edx, dword [esp + 8]
nop dword [eax + eax]
mov eax, dword [esp + edi + 0x7c]
mov eax, dword [eax + ecx*4]
not eax
and dword [edx + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x435c80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x435d1e
mov dword [esp + 0x24], edx
cmp dword [esp + 0x34], 0
je 0x435d1a
mov eax, dword [esp + edi + 0x7c]
mov esi, edx
sar esi, 5
mov ecx, edx
mov dword [esp + 0x28], eax
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x435d07
mov eax, dword [esp + 0x28]
btr edi, ecx
dec dword [esp + 0x34]
mov dword [eax + esi*4], edi
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
add ecx, dword [esp + 0x24]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm2
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [esp + 0x20], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov ecx, dword [esp + 0x1c]
inc edx
add dword [esp + 0x24], 0x18
mov edi, dword [esp + 0x18]
cmp edx, dword [ecx + 4]
jl 0x435ca4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x10]
jmp 0x435d2c
mov ecx, dword [esp + 0x1c]
cmp eax, 1
jne 0x435d7f
cmp word [esp + 0x64], 0
jle 0x435d7f
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov edx, esi
add esi, 0x18
mov dword [esp + 0x20], esi
movzx eax, word [eax + 0x1e8]
mov esi, dword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
mov eax, dword [esp + 0x14]
movq qword [edx + 0x10], xmm0
inc eax
mov edx, dword [esp + 8]
jmp 0x435a35
inc eax
mov dword [esp + 0x14], eax
cmp eax, 4
jl 0x435a40
mov eax, dword [ecx + 4]
xor edi, edi
test eax, eax
jle 0x435df6
mov esi, dword [esp + 0x20]
mov dword [esp + 0x38], edi
nop
cmp dword [esp + 0x10], 0
je 0x435df6
mov ecx, edi
mov edx, 1
and ecx, 0x1f
mov eax, edi
shl edx, cl
mov ecx, dword [esp + 8]
sar eax, 5
test dword [ecx + eax*4], edx
je 0x435de5
mov eax, dword [esp + 0x1c]
mov ecx, esi
add esi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [esp + 0x38]
dec dword [esp + 0x10]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x1c]
inc edi
add dword [esp + 0x38], 0x18
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x435da0
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x4cb4]
mov eax, dword [ecx + 0x10]
add eax, 0x30
push eax
call fcn.00472aa0
add esp, 0xc
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.00471279
mov esp, ebp
pop ebp
ret