Function at 0x495d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x5b706c]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x28], edi
cmp eax, 4
jb 0x496bbd
cmp eax, 0x10
ja 0x496bbd
test al, 1
jne 0x496bbd
cmp ecx, 7
jb 0x496bbd
cmp ecx, 0xd
ja 0x496bbd
mov al, 0xf
sub al, cl
mov dl, al
mov byte [esp + 0x13], al
mov al, byte [ebp + 0x28]
dec dl
sub al, 2
mov byte [esp + 0x1f], dl
and al, 0xfe
or al, 0x10
shl al, 2
or al, dl
push ecx
mov byte [esp + 0x54], al
lea eax, [esp + 0x55]
push edi
push eax
call fcn.00524840
mov dl, byte [esp + 0x1f]
add esp, 0xc
mov eax, dword [ebp + 8]
test dl, dl
je 0x495e4d
lea ecx, [esp + 0x5f]
movzx edx, dl
nop dword [eax]
mov byte [ecx], al
lea ecx, [ecx - 1]
shr eax, 8
sub edx, 1
jne 0x495e40
test eax, eax
jne 0x496bbd
xorps xmm0, xmm0
xor ecx, ecx
movaps xmmword [esp + 0x40], xmm0
mov edx, 0x10
mov al, byte [esp + ecx + 0x50]
lea ecx, [ecx + 1]
xor byte [esp + ecx + 0x3f], al
sub edx, 1
jne 0x495e64
test esi, esi
je 0x496ba7
mov eax, dword [esi]
test eax, eax
je 0x496ba7
mov ecx, dword [eax + 4]
mov edx, 0x10
mov edi, dword [eax + 0x18]
cmp ecx, 1
jne 0x495eb2
cmp edi, edx
jne 0x4968ce
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push ecx
push dword [esi + 8]
mov eax, dword [eax + 4]
jmp 0x495fd6
cmp ecx, 6
jne 0x495ecd
mov ecx, dword [esi + 0x3c]
lea eax, [esp + 0x40]
push eax
push eax
call fcn.004978a0
add esp, 8
jmp 0x495fe2
test edi, edi
je 0x4968fa
cmp dword [esi + 0x24], 0
jne 0x496ba7
mov eax, edx
xor edx, edx
div edi
test edx, edx
jne 0x496ba7
cmp ecx, 2
jne 0x495f68
mov eax, dword [esi + 8]
test eax, eax
jne 0x495f4c
cmp edi, 0x10
jae 0x495f56
xor ecx, ecx
test eax, eax
lea eax, [esp + 0x50]
cmovne edi, ecx
sub eax, edi
push edi
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00524840
add dword [esi + 0x24], edi
mov edx, 0x10
add esp, 0xc
sub edx, edi
je 0x495fea
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 8]
push edx
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
jmp 0x495fde
cmp eax, 1
jne 0x495efe
cmp edi, 0x10
jbe 0x495efe
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0x14], xmm0
add dword [esi + 0x24], 0x10
jmp 0x495fea
cmp ecx, 3
jne 0x495f92
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0xc]
push 0x10
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x495fde
cmp ecx, 5
jne 0x495fbd
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0x10]
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x495fde
cmp ecx, 7
jne 0x4968e4
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
push ecx
push 0x10
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
push dword [esi + 0x3c]
call eax
add esp, 0x10
test eax, eax
je 0x495fea
test eax, eax
jne 0x496bc2
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
mov edx, 0x10
mov byte [esp + 0x51], 0xd
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x5a], eax
mov al, byte [ecx + 0xc]
xor ecx, ecx
movq qword [esp + 0x52], xmm0
mov byte [esp + 0x5e], al
nop word [eax + eax]
mov al, byte [esp + ecx + 0x50]
lea ecx, [ecx + 1]
xor byte [esp + ecx + 0x3f], al
sub edx, 1
jne 0x496020
mov eax, dword [esi]
test eax, eax
je 0x496ba7
mov ecx, dword [eax + 4]
mov edi, dword [eax + 0x18]
cmp ecx, 1
jne 0x496062
cmp edi, 0x10
jne 0x4968ce
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push ecx
push dword [esi + 8]
mov eax, dword [eax + 4]
jmp 0x49618c
cmp ecx, 6
jne 0x496080
lea eax, [esp + 0x40]
push eax
lea edx, [ecx + 0xa]
mov ecx, dword [esi + 0x3c]
push eax
call fcn.004978a0
add esp, 8
jmp 0x496198
test edi, edi
je 0x4968fa
cmp dword [esi + 0x24], 0
jne 0x496ba7
xor edx, edx
mov eax, 0x10
div edi
test edx, edx
jne 0x496ba7
cmp ecx, 2
jne 0x49611e
mov eax, dword [esi + 8]
test eax, eax
jne 0x496102
cmp edi, 0x10
jae 0x49610c
xor ecx, ecx
test eax, eax
lea eax, [esp + 0x50]
cmovne edi, ecx
sub eax, edi
push edi
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00524840
add dword [esi + 0x24], edi
mov edx, 0x10
add esp, 0xc
sub edx, edi
je 0x4961a0
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 8]
push edx
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
jmp 0x496194
cmp eax, 1
jne 0x4960b4
cmp edi, 0x10
jbe 0x4960b4
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0x14], xmm0
add dword [esi + 0x24], 0x10
jmp 0x4961a0
cmp ecx, 3
jne 0x496148
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0xc]
push 0x10
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x496194
cmp ecx, 5
jne 0x496173
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0x10]
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x496194
cmp ecx, 7
jne 0x4968e4
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
push ecx
push 0x10
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
push dword [esi + 0x3c]
call eax
add esp, 0x10
test eax, eax
je 0x4961a0
test eax, eax
jne 0x496bc2
mov al, byte [esp + 0x1f]
mov edi, dword [esp + 0x34]
push edi
push dword [esp + 0x2c]
mov byte [esp + 0x68], al
lea eax, [esp + 0x69]
push eax
call fcn.00524840
movzx eax, byte [esp + 0x1f]
push eax
lea eax, [esp + 0x71]
add eax, edi
push 0
push eax
call fcn.00525340
mov edi, dword [ebp + 8]
add esp, 0x18
mov byte [esp + 0x6f], 1
test edi, edi
je 0x496910
cmp edi, 0x10
mov eax, edi
mov ecx, 0x10
cmova eax, ecx
cmp dword [esp + 0x30], 0
mov dword [esp + 0x20], eax
jne 0x4963a0
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x58]
xorps xmm0, xmm0
push eax
movaps xmmword [esp + 0x5c], xmm0
call fcn.00524840
add esp, 0xc
mov edx, 0x10
xor ecx, ecx
nop
mov al, byte [esp + ecx + 0x50]
lea ecx, [ecx + 1]
xor byte [esp + ecx + 0x3f], al
sub edx, 1
jne 0x496220
mov eax, dword [esi]
test eax, eax
je 0x496ba7
mov ecx, dword [eax + 4]
mov edi, dword [eax + 0x18]
cmp ecx, 1
jne 0x496262
cmp edi, 0x10
jne 0x4968ce
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push ecx
push dword [esi + 8]
mov eax, dword [eax + 4]
jmp 0x49638c
cmp ecx, 6
jne 0x496280
lea eax, [esp + 0x40]
push eax
lea edx, [ecx + 0xa]
mov ecx, dword [esi + 0x3c]
push eax
call fcn.004978a0
add esp, 8
jmp 0x496398
test edi, edi
je 0x4968fa
cmp dword [esi + 0x24], 0
jne 0x496ba7
xor edx, edx
mov eax, 0x10
div edi
test edx, edx
jne 0x496ba7
cmp ecx, 2
jne 0x49631e
mov eax, dword [esi + 8]
test eax, eax
jne 0x496302
cmp edi, 0x10
jae 0x49630c
xor ecx, ecx
test eax, eax
lea eax, [esp + 0x50]
cmovne edi, ecx
sub eax, edi
push edi
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00524840
add dword [esi + 0x24], edi
mov edx, 0x10
add esp, 0xc
sub edx, edi
je 0x4963a0
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 8]
push edx
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
jmp 0x496394
cmp eax, 1
jne 0x4962b4
cmp edi, 0x10
jbe 0x4962b4
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0x14], xmm0
add dword [esi + 0x24], 0x10
jmp 0x4963a0
cmp ecx, 3
jne 0x496348
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0xc]
push 0x10
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x496394
cmp ecx, 5
jne 0x496373
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0x10]
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x496394
cmp ecx, 7
jne 0x4968e4
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
push ecx
push 0x10
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
push dword [esi + 0x3c]
call eax
add esp, 0x10
test eax, eax
je 0x4963a0
test eax, eax
jne 0x496bc2
mov edx, dword [esi]
lea eax, [esp + 0x50]
mov dword [esp + 0x14], eax
mov edi, 0x10
mov dword [esp + 0x38], edi
lea eax, [esp + 0x60]
mov dword [esp + 0x28], eax
test edx, edx
je 0x496ba7
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x34], ecx
cmp eax, 1
jne 0x4963f2
cmp ecx, edi
jne 0x4968ce
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
push ecx
push dword [esi + 8]
mov eax, dword [eax + 4]
jmp 0x4965ba
cmp eax, 6
jne 0x496413
mov ecx, dword [esi + 0x3c]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
mov edx, edi
push eax
call fcn.004978a0
add esp, 8
jmp 0x4965c6
test ecx, ecx
je 0x4968fa
cmp eax, 2
jne 0x496546
mov eax, dword [esi + 8]
test eax, eax
jne 0x49651b
mov edx, dword [esi + 0x24]
mov eax, ecx
sub eax, edx
cmp eax, 0x10
jae 0x496534
mov edx, dword [esi + 0x24]
test edx, edx
je 0x4964bd
mov eax, ecx
lea edi, [esi + 0x14]
sub eax, edx
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x64]
push eax
lea eax, [edx + edi]
push eax
call fcn.00524840
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x5c]
push eax
push edi
lea eax, [esi + 0x28]
push eax
push dword [esp + 0x4c]
mov eax, dword [ecx + 8]
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x24
test eax, eax
jne 0x496bc2
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x50]
add eax, ecx
mov dword [esi + 0x24], 0
mov dword [esp + 0x14], eax
lea edx, [esp + 0x60]
mov eax, dword [esp + 0x28]
mov edi, 0x10
add edx, eax
sub edi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], edi
je 0x4965ce
mov eax, edi
xor edx, edx
div ecx
mov edi, edx
test edi, edi
jne 0x4964cf
cmp dword [esi + 8], edx
cmove edi, ecx
mov eax, dword [esp + 0x28]
sub eax, edi
add eax, dword [esp + 0x38]
push edi
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00524840
mov edx, dword [esp + 0x44]
add esp, 0xc
add dword [esi + 0x24], edi
sub edx, edi
je 0x4965ce
mov eax, dword [esi]
push dword [esp + 0x14]
push dword [esp + 0x2c]
mov ecx, dword [eax + 0x1c]
lea eax, [esi + 0x28]
push eax
push edx
push dword [esi + 8]
mov eax, dword [ecx + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
jmp 0x4965c2
cmp eax, 1
jne 0x49643f
mov edx, dword [esi + 0x24]
mov eax, ecx
sub eax, edx
cmp eax, 0x10
jbe 0x49643f
movups xmm0, xmmword [esp + 0x60]
movups xmmword [edx + esi + 0x14], xmm0
add dword [esi + 0x24], edi
jmp 0x4965ce
cmp eax, 3
jne 0x496572
mov ecx, dword [edx + 0x1c]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0xc]
push 0x10
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x4965c2
cmp eax, 5
jne 0x49659f
mov ecx, dword [edx + 0x1c]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0x10]
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x4965c2
cmp eax, 7
jne 0x4968e4
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
push ecx
mov eax, dword [eax + 0x14]
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x10
test eax, eax
je 0x4965ce
test eax, eax
jne 0x496bc2
mov ecx, dword [esp + 0x20]
xor dl, dl
test ecx, ecx
je 0x4966ae
cmp ecx, 0x40
jb 0x4966ae
lea eax, [ecx - 1]
movzx edi, al
lea eax, [esp + 0x50]
add eax, edi
cmp dword [esp + 0x18], eax
ja 0x49660f
lea eax, [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add eax, edi
cmp eax, dword [esp + 0x14]
jae 0x4966ae
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add eax, edi
cmp dword [esp + 0x18], eax
ja 0x496633
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
add eax, edi
cmp eax, dword [esp + 0x24]
jae 0x4966ae
mov esi, dword [esp + 0x18]
mov edi, ecx
and edi, 0xffffffc0
mov cl, 0x20
mov dword [esp + 0x14], edi
xor eax, eax
mov edi, dword [esp + 0x24]
add dl, 0x40
movups xmm0, xmmword [esp + eax + 0x50]
movups xmm1, xmmword [eax + edi]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
lea eax, [ecx - 0x10]
movzx eax, al
movups xmm0, xmmword [esp + eax + 0x50]
movups xmm1, xmmword [eax + edi]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
movzx eax, cl
movups xmm0, xmmword [esp + eax + 0x50]
movups xmm1, xmmword [eax + edi]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
lea eax, [ecx + 0x10]
add cl, 0x40
movzx eax, al
movups xmm1, xmmword [eax + edi]
movups xmm0, xmmword [esp + eax + 0x50]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
movzx eax, dl
cmp eax, dword [esp + 0x14]
jb 0x496644
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
movzx ecx, dl
cmp ecx, edi
jae 0x4966dc
mov esi, dword [esp + 0x18]
nop dword [eax]
mov eax, dword [esp + 0x24]
add dl, 1
mov al, byte [ecx + eax]
xor al, byte [esp + ecx + 0x50]
mov byte [ecx + esi], al
movzx ecx, dl
cmp ecx, edi
jb 0x4966c0
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x30], 1
jne 0x496890
push edi
push dword [esp + 0x1c]
lea eax, [esp + 0x58]
xorps xmm0, xmm0
push eax
movaps xmmword [esp + 0x5c], xmm0
call fcn.00524840
add esp, 0xc
mov edx, 0x10
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esp + ecx + 0x50]
lea ecx, [ecx + 1]
xor byte [esp + ecx + 0x3f], al
sub edx, 1
jne 0x496710
mov eax, dword [esi]
test eax, eax
je 0x496ba7
mov ecx, dword [eax + 4]
mov edi, dword [eax + 0x18]
cmp ecx, 1
jne 0x496752
cmp edi, 0x10
jne 0x4968ce
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push ecx
push dword [esi + 8]
mov eax, dword [eax + 4]
jmp 0x49687c
cmp ecx, 6
jne 0x496770
lea eax, [esp + 0x40]
push eax
lea edx, [ecx + 0xa]
mov ecx, dword [esi + 0x3c]
push eax
call fcn.004978a0
add esp, 8
jmp 0x496888
test edi, edi
je 0x4968fa
cmp dword [esi + 0x24], 0
jne 0x496ba7
xor edx, edx
mov eax, 0x10
div edi
test edx, edx
jne 0x496ba7
cmp ecx, 2
jne 0x49680e
mov eax, dword [esi + 8]
test eax, eax
jne 0x4967f2
cmp edi, 0x10
jae 0x4967fc
xor ecx, ecx
test eax, eax
lea eax, [esp + 0x50]
cmovne edi, ecx
sub eax, edi
push edi
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00524840
add dword [esi + 0x24], edi
mov edx, 0x10
add esp, 0xc
sub edx, edi
je 0x496890
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 8]
push edx
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
jmp 0x496884
cmp eax, 1
jne 0x4967a4
cmp edi, 0x10
jbe 0x4967a4
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0x14], xmm0
add dword [esi + 0x24], 0x10
jmp 0x496890
cmp ecx, 3
jne 0x496838
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0xc]
push 0x10
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x496884
cmp ecx, 5
jne 0x496863
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x40]
push eax
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0x10]
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x496884
cmp ecx, 7
jne 0x4968e4
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
push ecx
push 0x10
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x14]
push dword [esi + 0x3c]
call eax
add esp, 0x10
test eax, eax
je 0x496890
test eax, eax
jne 0x496bc2
mov eax, dword [esp + 0x20]
xor dl, dl
mov edi, dword [ebp + 8]
mov dh, byte [esp + 0x13]
sub edi, eax
add dword [esp + 0x18], eax
add dword [esp + 0x24], eax
mov dword [ebp + 8], edi
test dh, dh
je 0x4968c4
nop
movzx eax, dl
lea ecx, [esp + 0x6f]
sub ecx, eax
add byte [ecx], 1
jne 0x4968c4
inc dl
cmp dl, dh
jb 0x4968b0
test edi, edi
jne 0x4961e2
jmp 0x496914
mov eax, 0xffff9d80
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, 0xffff9f80
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, 0xffff9c80
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov dh, byte [esp + 0x13]
xor dl, dl
test dh, dh
je 0x49693e
nop word [eax + eax]
movzx eax, dl
mov ecx, 0xf
sub ecx, eax
cmp ecx, 0x10
jae 0x496bd3
inc dl
mov byte [esp + ecx + 0x60], 0
cmp dl, dh
jb 0x496920
mov edx, dword [esi]
lea eax, [esp + 0x50]
mov dword [esp + 0x14], eax
mov ecx, 0x10
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x60]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x496ba7
mov eax, dword [edx + 4]
mov edi, dword [edx + 0x18]
mov dword [esp + 0x34], edi
cmp eax, 1
jne 0x496990
cmp edi, ecx
jne 0x4968ce
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
push ecx
push dword [esi + 8]
mov eax, dword [eax + 4]
jmp 0x496b53
cmp eax, 6
jne 0x4969b1
lea eax, [esp + 0x50]
mov edx, ecx
mov ecx, dword [esi + 0x3c]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004978a0
add esp, 8
jmp 0x496b5f
test edi, edi
je 0x4968fa
cmp eax, 2
jne 0x496adf
mov eax, dword [esi + 8]
test eax, eax
jne 0x496ab4
mov edx, dword [esi + 0x24]
mov eax, edi
sub eax, edx
cmp eax, 0x10
jae 0x496acd
mov edx, dword [esi + 0x24]
test edx, edx
je 0x496a56
mov eax, edi
sub eax, edx
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x64]
push eax
lea eax, [edx + 0x14]
add eax, esi
push eax
call fcn.00524840
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x5c]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 8]
push edi
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x24
test eax, eax
jne 0x496bc2
lea ecx, [esp + 0x60]
mov dword [esi + 0x24], 0
add ecx, dword [esp + 0x30]
lea eax, [esp + 0x50]
mov dword [esp + 0x2c], ecx
add eax, edi
mov ecx, 0x10
mov dword [esp + 0x14], eax
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
je 0x496b63
xor edx, edx
mov eax, ecx
div edi
mov edi, edx
test edi, edi
jne 0x496a6a
cmp dword [esi + 8], edx
cmove edi, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
sub eax, edi
add eax, ecx
push edi
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00524840
mov edx, dword [esp + 0x3c]
add esp, 0xc
add dword [esi + 0x24], edi
sub edx, edi
je 0x496b63
mov eax, dword [esi]
push dword [esp + 0x14]
push dword [esp + 0x30]
mov ecx, dword [eax + 0x1c]
lea eax, [esi + 0x28]
push eax
push edx
push dword [esi + 8]
mov eax, dword [ecx + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
jmp 0x496b5b
cmp eax, 1
jne 0x4969dd
mov edx, dword [esi + 0x24]
mov eax, edi
sub eax, edx
cmp eax, 0x10
jbe 0x4969dd
movups xmm0, xmmword [esp + 0x60]
movups xmmword [edx + esi + 0x14], xmm0
add dword [esi + 0x24], ecx
jmp 0x496b63
cmp eax, 3
jne 0x496b0b
mov ecx, dword [edx + 0x1c]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0xc]
push 0x10
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x496b5b
cmp eax, 5
jne 0x496b38
mov ecx, dword [edx + 0x1c]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
mov eax, dword [ecx + 0x10]
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x1c
jmp 0x496b5b
cmp eax, 7
jne 0x4968e4
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
push ecx
mov eax, dword [eax + 0x14]
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x10
test eax, eax
je 0x496b63
test eax, eax
jne 0x496bc2
xor ecx, ecx
mov edx, 0x10
nop word [eax + eax]
mov al, byte [esp + ecx + 0x50]
lea ecx, [ecx + 1]
xor byte [esp + ecx + 0x3f], al
sub edx, 1
jne 0x496b70
push dword [ebp + 0x28]
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x44]
call fcn.00524840
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, 0xffff9f00
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffff3
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
call fcn.0051eb0a
int3